wifi_get/set_sleep_type: add source code implementations plus fixes. (#218)
* wifi_set_sleep_type returns a bool success flag. * wifi_get_sleep_type seemed useless, just returning an argument. Added an implementation using sdk_pm_get_sleep_type.
This commit is contained in:
parent
e48910ea3b
commit
0dadda86de
2 changed files with 14 additions and 2 deletions
|
@ -37,8 +37,8 @@ enum sdk_sleep_type {
|
|||
WIFI_SLEEP_LIGHT = 1,
|
||||
WIFI_SLEEP_MODEM = 2,
|
||||
};
|
||||
void sdk_wifi_set_sleep_type(enum sdk_sleep_type);
|
||||
enum sdk_sleep_type sdk_wifi_get_sleep_type(enum sdk_sleep_type);
|
||||
bool sdk_wifi_set_sleep_type(enum sdk_sleep_type);
|
||||
enum sdk_sleep_type sdk_wifi_get_sleep_type(void);
|
||||
|
||||
void sdk_system_restore(void);
|
||||
void sdk_system_restart(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue