Skip to content

Commit 5ef19e9

Browse files
committed
app_settings: set minimum LOOP_DELAY_S to 1
Prevents a situation where the device blocks all other processes while trying to constantly read from the sensors. Signed-off-by: Mike Szczys <[email protected]>
1 parent e5cb761 commit 5ef19e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app_settings.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ LOG_MODULE_REGISTER(app_settings, LOG_LEVEL_DBG);
1414

1515
static int32_t _loop_delay_s = 60;
1616
#define LOOP_DELAY_S_MAX 43200
17-
#define LOOP_DELAY_S_MIN 0
17+
#define LOOP_DELAY_S_MIN 1
1818

1919
int32_t get_loop_delay_s(void)
2020
{

0 commit comments

Comments
 (0)