We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e7d28c commit 598cad7Copy full SHA for 598cad7
ports/raspberrypi/common-hal/busio/UART.c
@@ -43,6 +43,9 @@ void never_reset_uart(uint8_t num) {
43
}
44
45
static void pin_check(const uint8_t uart, const mcu_pin_obj_t *pin, const uint8_t pin_type) {
46
+ if (pin == NULL) {
47
+ return;
48
+ }
49
if (!(((pin->number % 4) == pin_type) && ((((pin->number + 4) / 8) % NUM_UARTS) == uart))) {
50
raise_ValueError_invalid_pins();
51
0 commit comments