Skip to content

Commit

Permalink
Start work on moving timers to 64bit ints
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewtole committed Dec 10, 2014
1 parent 1d93666 commit b74e621
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 378 deletions.
Binary file modified design/multi-timer_ideas_01.sketch
Binary file not shown.
24 changes: 23 additions & 1 deletion src/migration.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,26 @@ typedef struct {
OldTimer timers[5];
uint8_t count;
int time;
} OldTimerBlock;
} OldTimerBlock;

typedef struct TimerTiny {
uint16_t id;
TimerType type;
uint16_t length;
uint16_t current_time;
TimerStatus status;
TimerVibration vibration;
uint8_t repeat;
uint8_t repeat_count;
AppTimer* timer;
WakeupId wakeup_id;
char label[24];
} TimerTiny;

typedef struct {
bool timers_start_auto; // Should timers start immediately when you add them?
TimerVibration timers_vibration; // Default timer vibration pattern
uint16_t timers_duration; // Default timer duration
bool timers_hours; // Use hours in timers?
bool show_clock; // Display a clock row in the main screen?
} SettingsTiny;
2 changes: 1 addition & 1 deletion src/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
typedef struct {
bool timers_start_auto; // Should timers start immediately when you add them?
TimerVibration timers_vibration; // Default timer vibration pattern
uint16_t timers_duration; // Default timer duration
uint32_t timers_duration; // Default timer duration
bool timers_hours; // Use hours in timers?
bool show_clock; // Display a clock row in the main screen?
} Settings;
Expand Down
Loading

0 comments on commit b74e621

Please sign in to comment.