Skip to content

Commit 275b788

Browse files
committed
removed volatile (should work without it)
1 parent aef441a commit 275b788

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/double_reset.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
#include <esp_log.h>
33
#include <freertos/FreeRTOS.h>
44
#include <freertos/event_groups.h>
5-
#include <freertos/task.h>
65
#include <nvs.h>
76

87
static const char TAG[] = "double_reset";
98
static const char KEY[] = "state";
109

11-
static volatile uint32_t double_reset_timeout = 5000;
10+
static uint32_t double_reset_timeout = 5000;
1211
static EventGroupHandle_t double_reset_group;
1312

1413
static esp_err_t double_reset_clear_state(nvs_handle_t handle)

0 commit comments

Comments
 (0)