Changed Rainmaker WiFi/Factory reset time. (#7514)
This commit is contained in:
parent
93a7f4e0db
commit
fd72cf46ad
1 changed files with 5 additions and 4 deletions
|
|
@ -1,12 +1,13 @@
|
||||||
#include "RMakerUtils.h"
|
#include "RMakerUtils.h"
|
||||||
#ifdef CONFIG_ESP_RMAKER_WORK_QUEUE_TASK_STACK
|
#ifdef CONFIG_ESP_RMAKER_WORK_QUEUE_TASK_STACK
|
||||||
void RMakerFactoryReset(int seconds)
|
#define RESET_DELAY_SEC 2
|
||||||
|
void RMakerFactoryReset(int reboot_seconds)
|
||||||
{
|
{
|
||||||
esp_rmaker_factory_reset(0, seconds);
|
esp_rmaker_factory_reset(RESET_DELAY_SEC, reboot_seconds);
|
||||||
}
|
}
|
||||||
|
|
||||||
void RMakerWiFiReset(int seconds)
|
void RMakerWiFiReset(int reboot_seconds)
|
||||||
{
|
{
|
||||||
esp_rmaker_wifi_reset(0, seconds);
|
esp_rmaker_wifi_reset(RESET_DELAY_SEC, reboot_seconds);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
Loading…
Reference in a new issue