Changed Rainmaker WiFi/Factory reset time. (#7514)

This commit is contained in:
Sanket Wadekar 2022-11-25 17:50:57 +05:30 committed by GitHub
parent 93a7f4e0db
commit fd72cf46ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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