Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose SDK event monitor #1018

Merged
merged 1 commit into from
Apr 1, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions app/include/rom.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@ void ets_delay_us (uint32_t us);

int ets_printf(const char *format, ...) __attribute__ ((format (printf, 1, 2)));

int ets_sprintf(char *str, const char *format, ...) __attribute__ ((format (printf, 2, 3)));

void ets_str2macaddr (uint8_t *dst, const char *str);

void ets_timer_disarm (ETSTimer *a);
Expand Down
4 changes: 4 additions & 0 deletions app/include/user_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ extern void luaL_assertfail(const char *file, int line, const char *message);

//#define WIFI_SMART_ENABLE

#define WIFI_STATION_STATUS_MONITOR_ENABLE
#define WIFI_SDK_EVENT_MONITOR_ENABLE
#define WIFI_EVENT_MONITOR_DISCONNECT_REASON_LIST_ENABLE

#define STRBUF_DEFAULT_INCREMENT 32

#endif /* __USER_CONFIG_H__ */
2 changes: 1 addition & 1 deletion app/libc/c_stdio.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ extern void output_redirect(const char *str);
int c_sprintf(char* s,const char *fmt, ...);
#endif

// #define c_vsprintf ets_vsprintf
#define c_vsprintf ets_vsprintf
#define c_printf(...) do { \
unsigned char __print_buf[BUFSIZ]; \
c_sprintf(__print_buf, __VA_ARGS__); \
Expand Down
Loading