Skip to content
Snippets Groups Projects
Commit d5a12a66 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

esp8266/modnetwork: Move config defines to the top.

parent 1c43a0fb
Branches
No related tags found
No related merge requests found
...@@ -39,6 +39,8 @@ ...@@ -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) { ...@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment