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 Graham Sanderson
parent 4cc1efa01a
commit a98136628c
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