Fix build

This commit is contained in:
Willy-JL
2024-07-02 17:11:44 +02:00
parent 0099e8dea7
commit 06d8babfea
2 changed files with 3 additions and 2 deletions

View File

@@ -206,7 +206,7 @@ static bool dolphin_process_event(FuriMessageQueue* queue, void* context) {
DolphinPubsubEvent event = DolphinPubsubEventUpdate; DolphinPubsubEvent event = DolphinPubsubEventUpdate;
furi_pubsub_publish(dolphin->pubsub, &event); furi_pubsub_publish(dolphin->pubsub, &event);
if(BUTTHURT_INCREASE_PERIOD_TICKS) { if(BUTTHURT_INCREASE_PERIOD_TICKS > 0) {
furi_event_loop_timer_start(dolphin->butthurt_timer, BUTTHURT_INCREASE_PERIOD_TICKS); furi_event_loop_timer_start(dolphin->butthurt_timer, BUTTHURT_INCREASE_PERIOD_TICKS);
} }
furi_event_loop_timer_start(dolphin->flush_timer, FLUSH_TIMEOUT_TICKS); furi_event_loop_timer_start(dolphin->flush_timer, FLUSH_TIMEOUT_TICKS);
@@ -259,7 +259,7 @@ int32_t dolphin_srv(void* p) {
dolphin_process_event, dolphin_process_event,
dolphin); dolphin);
if(BUTTHURT_INCREASE_PERIOD_TICKS) { if(BUTTHURT_INCREASE_PERIOD_TICKS > 0) {
furi_event_loop_timer_start(dolphin->butthurt_timer, BUTTHURT_INCREASE_PERIOD_TICKS); furi_event_loop_timer_start(dolphin->butthurt_timer, BUTTHURT_INCREASE_PERIOD_TICKS);
} }
furi_event_loop_timer_start(dolphin->clear_limits_timer, CLEAR_LIMITS_PERIOD_TICKS); furi_event_loop_timer_start(dolphin->clear_limits_timer, CLEAR_LIMITS_PERIOD_TICKS);

View File

@@ -8,6 +8,7 @@
#include <dolphin/dolphin_i.h> #include <dolphin/dolphin_i.h>
#include <dolphin/helpers/dolphin_state.h> #include <dolphin/helpers/dolphin_state.h>
#include <furi.h> #include <furi.h>
#include <furi_hal.h>
#include <m-array.h> #include <m-array.h>
#include <momentum/momentum.h> #include <momentum/momentum.h>
#include <m-string.h> #include <m-string.h>