Skip to content

Commit

Permalink
Update Flipper API
Browse files Browse the repository at this point in the history
Commit feb45f6645066a283adb0656d2de451786633765 on
official flipperzero firmware breaks the compatibilty
of the API to access the RTC time.
Moving to the new API.
  • Loading branch information
MrModd committed Mar 24, 2024
1 parent 4ce7a43 commit 142f3af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/state_management.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <furi.h> // For FURI_LOG_D
#include <furi_hal.h> // For RTC handling
#include <datetime/datetime.h> // For RTC handling

Check failure on line 2 in src/state_management.c

View workflow job for this annotation

GitHub Actions / Build for Unleashed release

datetime/datetime.h: No such file or directory

#include "state_management.h"
#include "constants.h"
Expand All @@ -9,9 +9,9 @@
#include "game_structs.h"

static uint32_t get_current_timestamp() {
FuriHalRtcDateTime current_time;
DateTime current_time;
furi_hal_rtc_get_datetime(&current_time);
return furi_hal_rtc_datetime_to_timestamp(&current_time);
return datetime_datetime_to_timestamp(&current_time);
}

static void fast_forward_state(struct GameState *game_state) {
Expand Down

0 comments on commit 142f3af

Please sign in to comment.