mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-14 20:18:35 -07:00
Properly read butthurt timer setting
This commit is contained in:
@@ -80,7 +80,7 @@ Dolphin* dolphin_alloc() {
|
|||||||
dolphin->state = dolphin_state_alloc();
|
dolphin->state = dolphin_state_alloc();
|
||||||
dolphin->event_queue = furi_message_queue_alloc(8, sizeof(DolphinEvent));
|
dolphin->event_queue = furi_message_queue_alloc(8, sizeof(DolphinEvent));
|
||||||
dolphin->pubsub = furi_pubsub_alloc();
|
dolphin->pubsub = furi_pubsub_alloc();
|
||||||
int32_t butthurt = XTREME_SETTINGS()->butthurt_timer;
|
int32_t butthurt = XTREME_SETTINGS_WAIT()->butthurt_timer;
|
||||||
dolphin->butthurt_timer = xTimerCreate(
|
dolphin->butthurt_timer = xTimerCreate(
|
||||||
NULL,
|
NULL,
|
||||||
(butthurt > 0) ? (butthurt * 1000) : -1,
|
(butthurt > 0) ? (butthurt * 1000) : -1,
|
||||||
|
|||||||
Reference in New Issue
Block a user