Skip to content

Commit fd72cf4

Browse files
Changed Rainmaker WiFi/Factory reset time. (#7514)
1 parent 93a7f4e commit fd72cf4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: libraries/RainMaker/src/RMakerUtils.cpp

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#include "RMakerUtils.h"
22
#ifdef CONFIG_ESP_RMAKER_WORK_QUEUE_TASK_STACK
3-
void RMakerFactoryReset(int seconds)
3+
#define RESET_DELAY_SEC 2
4+
void RMakerFactoryReset(int reboot_seconds)
45
{
5-
esp_rmaker_factory_reset(0, seconds);
6+
esp_rmaker_factory_reset(RESET_DELAY_SEC, reboot_seconds);
67
}
78

8-
void RMakerWiFiReset(int seconds)
9+
void RMakerWiFiReset(int reboot_seconds)
910
{
10-
esp_rmaker_wifi_reset(0, seconds);
11+
esp_rmaker_wifi_reset(RESET_DELAY_SEC, reboot_seconds);
1112
}
1213
#endif

0 commit comments

Comments
 (0)