File tree Expand file tree Collapse file tree
ports/espressif/supervisor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -251,12 +251,12 @@ safe_mode_t port_init(void) {
251251 #define pin_GPIOn (n ) pin_GPIO##n
252252 #define pin_GPIOn_EXPAND (x ) pin_GPIOn(x)
253253
254- #ifdef CONFIG_CONSOLE_UART_TX_GPIO
255- common_hal_never_reset_pin (& pin_GPIOn_EXPAND (CONFIG_CONSOLE_UART_TX_GPIO ));
254+ #ifdef CONFIG_ESP_CONSOLE_UART_TX_GPIO
255+ common_hal_never_reset_pin (& pin_GPIOn_EXPAND (CONFIG_ESP_CONSOLE_UART_TX_GPIO ));
256256 #endif
257257
258- #ifdef CONFIG_CONSOLE_UART_RX_GPIO
259- common_hal_never_reset_pin (& pin_GPIOn_EXPAND (CONFIG_CONSOLE_UART_RX_GPIO ));
258+ #ifdef CONFIG_ESP_CONSOLE_UART_RX_GPIO
259+ common_hal_never_reset_pin (& pin_GPIOn_EXPAND (CONFIG_ESP_CONSOLE_UART_RX_GPIO ));
260260 #endif
261261
262262 #ifndef ENABLE_JTAG
Original file line number Diff line number Diff line change @@ -2205,6 +2205,12 @@ typedef double mp_float_t;
22052205#define MP_INLINE inline MP_NO_INSTRUMENT
22062206#endif
22072207
2208+ // CIRCUITPY-CHANGE
2209+ // Modifier for functions whose return value should not be ignored
2210+ #ifndef MP_WARN_UNUSED_RESULT
2211+ #define MP_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
2212+ #endif
2213+
22082214// Modifier for functions which should be never inlined
22092215#ifndef MP_NOINLINE
22102216#define MP_NOINLINE __attribute__((noinline))
You can’t perform that action at this time.
0 commit comments