diff options
| author | Dan Halbert <halbert@halwitz.org> | 2020-02-28 23:32:24 -0500 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2020-02-28 23:43:04 -0500 |
| commit | b6206406de2a232299ebdd1d187c7656ae79f8f2 (patch) | |
| tree | a5738ccf40ddd8092a1f2edf9811e4a3b6404968 /shared-module/board | |
| parent | 29e44721d2d4712de865aa3a3b8fdd5de90c029b (diff) | |
new pin validation routines; don't use mp_const_none if NULL will do
Diffstat (limited to 'shared-module/board')
| -rw-r--r-- | shared-module/board/__init__.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shared-module/board/__init__.c b/shared-module/board/__init__.c index bbf177384..789318a05 100644 --- a/shared-module/board/__init__.c +++ b/shared-module/board/__init__.c @@ -103,12 +103,12 @@ mp_obj_t common_hal_board_create_uart(void) { #ifdef DEFAULT_UART_BUS_RTS const mcu_pin_obj_t* rts = MP_OBJ_TO_PTR(DEFAULT_UART_BUS_RTS); #else - const mcu_pin_obj_t* rts = mp_const_none; + const mcu_pin_obj_t* rts = NULL; #endif #ifdef DEFAULT_UART_BUS_CTS const mcu_pin_obj_t* cts = MP_OBJ_TO_PTR(DEFAULT_UART_BUS_CTS); #else - const mcu_pin_obj_t* cts = mp_const_none; + const mcu_pin_obj_t* cts = NULL; #endif #ifdef DEFAULT_UART_IS_RS485 const mcu_pin_obj_t* rs485_dir = MP_OBJ_TO_PTR(DEFAULT_UART_BUS_RS485DIR); @@ -118,7 +118,7 @@ mp_obj_t common_hal_board_create_uart(void) { const bool rs485_invert = false; #endif #else - const mcu_pin_obj_t* rs485_dir = mp_const_none; + const mcu_pin_obj_t* rs485_dir = NULL; const bool rs485_invert = false; #endif |
