Properly read butthurt timer setting

This commit is contained in:
Willy-JL
2023-05-02 22:55:06 +01:00
parent 331f26547b
commit d4eef8e3f8

View File

@@ -80,7 +80,7 @@ Dolphin* dolphin_alloc() {
dolphin->state = dolphin_state_alloc();
dolphin->event_queue = furi_message_queue_alloc(8, sizeof(DolphinEvent));
dolphin->pubsub = furi_pubsub_alloc();
int32_t butthurt = XTREME_SETTINGS()->butthurt_timer;
int32_t butthurt = XTREME_SETTINGS_WAIT()->butthurt_timer;
dolphin->butthurt_timer = xTimerCreate(
NULL,
(butthurt > 0) ? (butthurt * 1000) : -1,