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>
This commit is contained in:
Glenn Moloney
2023-10-10 13:06:59 +11:00
committed by Damien George
parent a06f4c8df4
commit 9f835df35e
7 changed files with 43 additions and 38 deletions

View File

@@ -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