Skip to content

Commit

Permalink
v16.1
Browse files Browse the repository at this point in the history
Added pull request from Nerten for https://github.com/MarSoft/pebble-mss.
Pull request #1 "Prevent hourly vibes on quiet time".
  • Loading branch information
cfg1 committed Dec 11, 2017
1 parent aead684 commit 73372ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"author": "fg",
"dependencies": {},
"keywords": [],
"name": "m7s_wf_16_0",
"name": "m7s_wf_16_1",
"pebble": {
"capabilities": [
"location",
"configurable",
"health"
],
"displayName": "M7S_16_0",
"displayName": "M7S_16_1",
"enableMultiJS": true,
"messageKeys": {
"KEY_BTY_LAST_CHARGED": 13,
Expand Down Expand Up @@ -122,5 +122,5 @@
"watchface": true
}
},
"version": "16.0.0"
"version": "16.1.0"
}
2 changes: 1 addition & 1 deletion src/c/main_modern.h
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ static void handle_second_tick(struct tm* current_time, TimeUnits units_changed)
layer_mark_dirty(s_image_layer_hour_2);

if (vibe_hour_old < 0) vibe_hour_old = current_time_copy.tm_hour;
if (vibe_on_hour && (vibe_hour_old != current_time_copy.tm_hour)){
if (vibe_on_hour && (vibe_hour_old != current_time_copy.tm_hour) && !quiet_time_is_active()){
// Vibe pattern: ON for 200ms, OFF for 100ms, ON for 400ms:
static const uint32_t segments[] = { 150, 70, 150 };
VibePattern pat = {
Expand Down
2 changes: 1 addition & 1 deletion src/c/main_platform_aplite.h
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ static void handle_second_tick(struct tm* current_time, TimeUnits units_changed)
layer_mark_dirty(s_image_layer_hour_2);

if (vibe_hour_old < 0) vibe_hour_old = current_time_copy.tm_hour;
if (vibe_on_hour && (vibe_hour_old != current_time_copy.tm_hour)){
if (vibe_on_hour && (vibe_hour_old != current_time_copy.tm_hour) && !quiet_time_is_active()){
// Vibe pattern: ON for 200ms, OFF for 100ms, ON for 400ms:
static const uint32_t segments[] = { 150, 70, 150 };
VibePattern pat = {
Expand Down

0 comments on commit 73372ca

Please sign in to comment.