esp8266/modnetwork: Move config defines to the top.
This commit is contained in:
parent
1c43a0fbf8
commit
d5a12a6608
@ -39,6 +39,8 @@
|
|||||||
#include "spi_flash.h"
|
#include "spi_flash.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
|
#define MODNETWORK_INCLUDE_CONSTANTS (1)
|
||||||
|
|
||||||
typedef struct _wlan_if_obj_t {
|
typedef struct _wlan_if_obj_t {
|
||||||
mp_obj_base_t base;
|
mp_obj_base_t base;
|
||||||
int if_id;
|
int if_id;
|
||||||
@ -116,8 +118,6 @@ STATIC mp_obj_t esp_disconnect(mp_obj_t self_in) {
|
|||||||
}
|
}
|
||||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(esp_disconnect_obj, esp_disconnect);
|
STATIC MP_DEFINE_CONST_FUN_OBJ_1(esp_disconnect_obj, esp_disconnect);
|
||||||
|
|
||||||
#define MODNETWORK_INCLUDE_CONSTANTS (1)
|
|
||||||
|
|
||||||
STATIC mp_obj_t esp_status(mp_obj_t self_in) {
|
STATIC mp_obj_t esp_status(mp_obj_t self_in) {
|
||||||
wlan_if_obj_t *self = MP_OBJ_TO_PTR(self_in);
|
wlan_if_obj_t *self = MP_OBJ_TO_PTR(self_in);
|
||||||
if (self->if_id == STATION_IF) {
|
if (self->if_id == STATION_IF) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user