summaryrefslogtreecommitdiff
path: root/src/c/fastforge.h
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-12 22:10:52 +0300
committerPaul Buetow <paul@buetow.org>2026-04-12 22:10:52 +0300
commit9d28ec3d0e03b32949b0392d22ad9489cb423f29 (patch)
tree06ab4c736f9b8650b04d8d4c4c08dce7e9a440fa /src/c/fastforge.h
parent853336044011d628b103cd99944d2d9624b37196 (diff)
Refactor FastForge C best practices for task 42
Diffstat (limited to 'src/c/fastforge.h')
-rw-r--r--src/c/fastforge.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/c/fastforge.h b/src/c/fastforge.h
index 6a86553..c7b370d 100644
--- a/src/c/fastforge.h
+++ b/src/c/fastforge.h
@@ -3,6 +3,7 @@
#include <pebble.h>
+/* Persisted fast record shared by the running state and history list. */
typedef struct {
time_t start_time;
time_t end_time; // 0 = currently running
@@ -11,6 +12,7 @@ typedef struct {
uint8_t max_stage_reached; // 0=none, 1=12h, 2=18h, 3=24h+
} FastEntry;
+/* Derived streak counters rebuilt from completed fast end dates. */
typedef struct {
uint16_t current_streak;
uint16_t longest_streak;