Skip to content

Commit

Permalink
Fixed incorrect seconds for vibrate alerts
Browse files Browse the repository at this point in the history
and removed unnecessary hours display for rest time placeholders
  • Loading branch information
sephallen committed Nov 14, 2014
1 parent 6d57126 commit ecab92a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/stopwatch.c
Expand Up @@ -140,7 +140,7 @@ void handle_init() {
text_layer_set_background_color(big_rest_layer, GColorClear);
text_layer_set_font(big_rest_layer, fonts_get_system_font(FONT_KEY_GOTHIC_28_BOLD));
text_layer_set_text_color(big_rest_layer, GColorWhite);
text_layer_set_text(big_rest_layer, "0:00:00");
text_layer_set_text(big_rest_layer, "00:00");
text_layer_set_text_alignment(big_rest_layer, GTextAlignmentLeft);
layer_add_child(root_layer, (Layer*)big_rest_layer);

Expand All @@ -149,7 +149,7 @@ void handle_init() {
text_layer_set_background_color(remaining_rest_layer, GColorClear);
text_layer_set_font(remaining_rest_layer, fonts_get_system_font(FONT_KEY_GOTHIC_24));
text_layer_set_text_color(remaining_rest_layer, GColorWhite);
text_layer_set_text(remaining_rest_layer, "0:00:00");
text_layer_set_text(remaining_rest_layer, "00:00");
text_layer_set_text_alignment(remaining_rest_layer, GTextAlignmentLeft);
layer_add_child(root_layer, (Layer*)remaining_rest_layer);

Expand Down Expand Up @@ -319,7 +319,7 @@ void update_stopwatch() {
}

// When thirty minites of driving time remain, alert user with two small pulses
if((int)elapsed_time == 10800) {
if((int)elapsed_time == 14400) {
vibes_double_pulse();
}

Expand All @@ -328,7 +328,7 @@ void update_stopwatch() {
vibes_double_pulse();
}

if((int)elapsed_time > 16199) {
if((int)elapsed_time > 16200) {
stop_stopwatch();
return;
}
Expand Down

0 comments on commit ecab92a

Please sign in to comment.