uart_set_baudrate should return actual rate set even in case of out of range parameters

This commit is contained in:
graham sanderson
2021-01-28 10:01:12 -06:00
committed by Luke Wren
parent 5ca82a9467
commit 16df9f8a95
2 changed files with 11 additions and 8 deletions

View File

@ -16,6 +16,7 @@ enum {
PICO_ERROR_TIMEOUT = -1,
PICO_ERROR_GENERIC = -2,
PICO_ERROR_NO_DATA = -3,
PICO_ERROR_OUT_OF_RANGE = -4,
};
#endif