mirror of
https://github.com/alinanorakari/Pebble-Time-Watchface-Super-Simple.git
synced 2025-08-30 08:29:11 +02:00
set dummy time for emulator
This commit is contained in:
parent
404536c3b7
commit
6aeb9601c0
@ -138,14 +138,14 @@ static void animate(int duration, int delay, AnimationImplementation *implementa
|
||||
static void tick_handler(struct tm *tick_time, TimeUnits changed) {
|
||||
// Store time
|
||||
// dummy time in emulator
|
||||
/*if (watch_info_get_model()==WATCH_INFO_MODEL_UNKNOWN) {
|
||||
if (watch_info_get_model()==WATCH_INFO_MODEL_UNKNOWN) {
|
||||
s_last_time.hours = 10;
|
||||
s_last_time.minutes = 8;
|
||||
} else { */
|
||||
} else {
|
||||
s_last_time.hours = tick_time->tm_hour;
|
||||
s_last_time.hours -= (s_last_time.hours > 12) ? 12 : 0;
|
||||
s_last_time.minutes = tick_time->tm_min;
|
||||
/* } */
|
||||
}
|
||||
|
||||
// Redraw
|
||||
if(s_canvas_layer) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user