set dummy time for emulator

master
Alina Marquardt 2015-11-20 03:35:16 +01:00
parent 404536c3b7
commit 6aeb9601c0
1 changed files with 3 additions and 3 deletions

View File

@ -138,14 +138,14 @@ static void animate(int duration, int delay, AnimationImplementation *implementa
static void tick_handler(struct tm *tick_time, TimeUnits changed) { static void tick_handler(struct tm *tick_time, TimeUnits changed) {
// Store time // Store time
// dummy time in emulator // 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.hours = 10;
s_last_time.minutes = 8; s_last_time.minutes = 8;
} else { */ } else {
s_last_time.hours = tick_time->tm_hour; s_last_time.hours = tick_time->tm_hour;
s_last_time.hours -= (s_last_time.hours > 12) ? 12 : 0; s_last_time.hours -= (s_last_time.hours > 12) ? 12 : 0;
s_last_time.minutes = tick_time->tm_min; s_last_time.minutes = tick_time->tm_min;
/* } */ }
// Redraw // Redraw
if(s_canvas_layer) { if(s_canvas_layer) {