We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cef9b0 commit 3a259bdCopy full SHA for 3a259bd
libraries/RainMaker/src/RMakerUtils.cpp
@@ -1,12 +1,13 @@
1
#include "RMakerUtils.h"
2
#ifdef CONFIG_ESP_RMAKER_WORK_QUEUE_TASK_STACK
3
-void RMakerFactoryReset(int seconds)
+#define RESET_DELAY_SEC 2
4
+void RMakerFactoryReset(int reboot_seconds)
5
{
- esp_rmaker_factory_reset(0, seconds);
6
+ esp_rmaker_factory_reset(RESET_DELAY_SEC, reboot_seconds);
7
}
8
-void RMakerWiFiReset(int seconds)
9
+void RMakerWiFiReset(int reboot_seconds)
10
- esp_rmaker_wifi_reset(0, seconds);
11
+ esp_rmaker_wifi_reset(RESET_DELAY_SEC, reboot_seconds);
12
13
#endif
0 commit comments