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/esp8266/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/esp8266/main.c')
| -rw-r--r-- | ports/esp8266/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/esp8266/main.c b/ports/esp8266/main.c index 3083fe364..11ac5b63f 100644 --- a/ports/esp8266/main.c +++ b/ports/esp8266/main.c @@ -45,7 +45,7 @@ #include "gccollect.h" #include "user_interface.h" -#if MICROPY_ESPNOW +#if MICROPY_PY_ESPNOW #include "modespnow.h" #endif @@ -77,7 +77,7 @@ STATIC void mp_reset(void) { mp_os_dupterm_obj.fun.var(2, args); } - #if MICROPY_ESPNOW + #if MICROPY_PY_ESPNOW espnow_deinit(mp_const_none); #endif |
