File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
ports/mimxrt10xx/common-hal/busio Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ void common_hal_busio_spi_construct(busio_spi_obj_t *self,
157
157
if (spi_taken ) {
158
158
mp_raise_ValueError (translate ("Hardware busy, try alternative pins" ));
159
159
} else {
160
- mp_raise_ValueError (translate ("Invalid SPI pin selection " ));
160
+ mp_raise_ValueError (translate ("Invalid pins " ));
161
161
}
162
162
}
163
163
Original file line number Diff line number Diff line change @@ -143,15 +143,15 @@ void common_hal_busio_uart_construct(busio_uart_obj_t *self,
143
143
}
144
144
145
145
if (uart_taken ) {
146
- mp_raise_RuntimeError (translate ("Hardware in use, try alternative pins" ));
146
+ mp_raise_ValueError (translate ("Hardware in use, try alternative pins" ));
147
147
}
148
148
149
149
if (self -> rx == NULL && self -> tx == NULL ) {
150
- mp_raise_RuntimeError (translate ("Invalid UART pin selection " ));
150
+ mp_raise_ValueError (translate ("Invalid pins " ));
151
151
}
152
152
153
153
if (is_onedirection && ((rts != NULL ) || (cts != NULL ))) {
154
- mp_raise_RuntimeError (translate ("Both RX and TX required for flow control" ));
154
+ mp_raise_ValueError (translate ("Both RX and TX required for flow control" ));
155
155
}
156
156
157
157
// Filter for sane settings for RS485
You can’t perform that action at this time.
0 commit comments