diff options
| author | Glenn Moloney <glenn.moloney@gmail.com> | 2023-10-10 13:06:59 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-10-10 17:56:36 +1100 |
| commit | 9f835df35e1628974437cdf87334667a9e2ce3c5 (patch) | |
| tree | 4410998873b12b15556b7974b9c300826c300cc9 /ports/esp32/main.c | |
| parent | a06f4c8df499164721b2132859bef19da48d52d1 (diff) | |
esp32,esp8266: Rename MICROPY_ESPNOW to MICROPY_PY_ESPNOW.
For consistency with other Python-level modules.
Also add the corresponding missing preprocessor guard to esp32/modespnow.c,
so that this port compiles if MICROPY_PY_ESPNOW and MICROPY_PY_NETWORK_WLAN
are set to 0.
Fixes #12622.
Signed-off-by: Glenn Moloney <glenn.moloney@gmail.com>
Diffstat (limited to 'ports/esp32/main.c')
| -rw-r--r-- | ports/esp32/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/esp32/main.c b/ports/esp32/main.c index 4a9c0060b..b514f44e0 100644 --- a/ports/esp32/main.c +++ b/ports/esp32/main.c @@ -60,7 +60,7 @@ #include "extmod/modbluetooth.h" #endif -#if MICROPY_ESPNOW +#if MICROPY_PY_ESPNOW #include "modespnow.h" #endif @@ -152,7 +152,7 @@ soft_reset_exit: mp_bluetooth_deinit(); #endif - #if MICROPY_ESPNOW + #if MICROPY_PY_ESPNOW espnow_deinit(mp_const_none); MP_STATE_PORT(espnow_singleton) = NULL; #endif |
