Skip to content

Commit d5a12a6

Browse files
committed
esp8266/modnetwork: Move config defines to the top.
1 parent 1c43a0f commit d5a12a6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

esp8266/modnetwork.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
#include "spi_flash.h"
4040
#include "utils.h"
4141

42+
#define MODNETWORK_INCLUDE_CONSTANTS (1)
43+
4244
typedef struct _wlan_if_obj_t {
4345
mp_obj_base_t base;
4446
int if_id;
@@ -116,8 +118,6 @@ STATIC mp_obj_t esp_disconnect(mp_obj_t self_in) {
116118
}
117119
STATIC MP_DEFINE_CONST_FUN_OBJ_1(esp_disconnect_obj, esp_disconnect);
118120

119-
#define MODNETWORK_INCLUDE_CONSTANTS (1)
120-
121121
STATIC mp_obj_t esp_status(mp_obj_t self_in) {
122122
wlan_if_obj_t *self = MP_OBJ_TO_PTR(self_in);
123123
if (self->if_id == STATION_IF) {

0 commit comments

Comments
 (0)