1
1
Fork 0

Bugfix for Battery Saver on 12h watch

squarelines 4.9
Alina Marquardt 2016-01-19 21:11:00 +01:00
parent 48259f4ddc
commit 8913a7699a
2 changed files with 4 additions and 10 deletions

View File

@ -38,7 +38,7 @@
"chalk" "chalk"
], ],
"uuid": "793bab03-9464-48a2-b63f-3f779c473db8", "uuid": "793bab03-9464-48a2-b63f-3f779c473db8",
"versionLabel": "4.8", "versionLabel": "4.9",
"watchapp": { "watchapp": {
"watchface": true "watchface": true
} }

View File

@ -194,12 +194,6 @@ unsigned char blocks[][5][5] = {{
{1,0,1,0,1}, {1,0,1,0,1},
{1,0,1,0,1}, {1,0,1,0,1},
{1,0,1,0,1} {1,0,1,0,1}
}, {
{1,0,1,0,1},
{1,0,1,0,1},
{1,0,1,0,1},
{1,0,1,0,1},
{1,0,1,0,1}
}, },
[99] = { [99] = {
{1,1,1,1,1}, {1,1,1,1,1},
@ -540,7 +534,7 @@ static GColor8 getSlotColor(int x, int y, int digit, int pos, bool isalpha) {
} }
#endif #endif
} }
if (should_add_var) { if (should_add_var || 1) {
if (argb == 0b11111111) { if (argb == 0b11111111) {
argb -= variation[ ( y*5 + x + digit*17 + pos*19 )%sizeof(variation) ]; argb -= variation[ ( y*5 + x + digit*17 + pos*19 )%sizeof(variation) ];
} else { } else {
@ -673,7 +667,7 @@ void handle_tick(struct tm *t, TimeUnits units_changed) {
} }
} else if (DISABLE_ANIM_START_TIME > DISABLE_ANIM_END_TIME) { } else if (DISABLE_ANIM_START_TIME > DISABLE_ANIM_END_TIME) {
// across midnight // across midnight
if (ho >= DISABLE_ANIM_START_TIME || ho < DISABLE_ANIM_END_TIME) { if (t->tm_hour >= DISABLE_ANIM_START_TIME || t->tm_hour < DISABLE_ANIM_END_TIME) {
allow_animate = false; allow_animate = false;
if (debug) { if (debug) {
APP_LOG(APP_LOG_LEVEL_INFO, "No Animation because time is between %d:00 and %d:00", (int)DISABLE_ANIM_START_TIME , (int)DISABLE_ANIM_END_TIME ); APP_LOG(APP_LOG_LEVEL_INFO, "No Animation because time is between %d:00 and %d:00", (int)DISABLE_ANIM_START_TIME , (int)DISABLE_ANIM_END_TIME );
@ -681,7 +675,7 @@ void handle_tick(struct tm *t, TimeUnits units_changed) {
} }
} else { } else {
// prior to midnight // prior to midnight
if (ho >= DISABLE_ANIM_START_TIME && ho < DISABLE_ANIM_END_TIME) { if (t->tm_hour >= DISABLE_ANIM_START_TIME && t->tm_hour < DISABLE_ANIM_END_TIME) {
allow_animate = false; allow_animate = false;
if (debug) { if (debug) {
APP_LOG(APP_LOG_LEVEL_INFO, "No Animation because time is between %d:00 and %d:00", (int)DISABLE_ANIM_START_TIME , (int)DISABLE_ANIM_END_TIME ); APP_LOG(APP_LOG_LEVEL_INFO, "No Animation because time is between %d:00 and %d:00", (int)DISABLE_ANIM_START_TIME , (int)DISABLE_ANIM_END_TIME );