Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
d5a12a66
Commit
d5a12a66
authored
Feb 19, 2016
by
Paul Sokolovsky
Browse files
esp8266/modnetwork: Move config defines to the top.
parent
1c43a0fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
esp8266/modnetwork.c
View file @
d5a12a66
...
...
@@ -39,6 +39,8 @@
#include
"spi_flash.h"
#include
"utils.h"
#define MODNETWORK_INCLUDE_CONSTANTS (1)
typedef
struct
_wlan_if_obj_t
{
mp_obj_base_t
base
;
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
);
#define MODNETWORK_INCLUDE_CONSTANTS (1)
STATIC
mp_obj_t
esp_status
(
mp_obj_t
self_in
)
{
wlan_if_obj_t
*
self
=
MP_OBJ_TO_PTR
(
self_in
);
if
(
self
->
if_id
==
STATION_IF
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment