File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
#define CA_PK "IIR7tWMp+VW9CZI3M7Q3TR4izhjOv96MsvhxKjd6wUQ="
2
- #define FW_VER 51
2
+ #define FW_VER 52
3
3
#define PRODUCT "VIRKEY"
4
4
#define LOG_TAG "MAIN"
5
5
@@ -275,7 +275,7 @@ static time_t adv_watchdog;
275
275
276
276
// Scheduled reboot (Dirty hack)
277
277
#ifndef SCHED_RESET
278
- #define SCHED_RESET (24 * 3600 * 10) // One day
278
+ #define SCHED_RESET (3 * 24 * 3600 * 10) // 3 days
279
279
#endif
280
280
static int32_t sched_reset_counter = SCHED_RESET ;
281
281
@@ -2140,7 +2140,7 @@ void app_main(void) {
2140
2140
ESP_ERROR_CHECK (esp_task_wdt_reset ());
2141
2141
2142
2142
// Scheduled reset
2143
- if (SCHED_RESET > 0 ) {
2143
+ if (SCHED_RESET > 0 && ! ota . start ) {
2144
2144
sched_reset_counter -- ;
2145
2145
if (sched_reset_counter == 0 ) {
2146
2146
reboot ();
You can’t perform that action at this time.
0 commit comments