Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fd72cf4

Browse filesBrowse files
Changed Rainmaker WiFi/Factory reset time. (espressif#7514)
1 parent 93a7f4e commit fd72cf4
Copy full SHA for fd72cf4

File tree

Expand file treeCollapse file tree

1 file changed

+5
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-4
lines changed
+5-4Lines changed: 5 additions & 4 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.