Remove second and minute hands
This commit is contained in:
parent
b7301d51cd
commit
796e8f1ada
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -3,7 +3,7 @@ name: CI
|
||||||
# Run this workflow whenever the build may be affected
|
# Run this workflow whenever the build may be affected
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main, wb/fuzzy, wb/fuzzy-norm ]
|
branches: [ main, wb/fuzzy, wb/fuzzy-norm, wb/fuzzy-analog ]
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- 'doc/**'
|
- 'doc/**'
|
||||||
- '**.md'
|
- '**.md'
|
||||||
|
|
|
@ -176,7 +176,7 @@ void WatchFaceAnalog::UpdateClock() {
|
||||||
uint8_t minute = dateTimeController.Minutes();
|
uint8_t minute = dateTimeController.Minutes();
|
||||||
uint8_t second = dateTimeController.Seconds();
|
uint8_t second = dateTimeController.Seconds();
|
||||||
|
|
||||||
if (sMinute != minute) {
|
if (minute>99 && sMinute != minute) { // disable
|
||||||
auto const angle = minute * 6;
|
auto const angle = minute * 6;
|
||||||
minute_point[0] = CoordinateRelocate(30, angle);
|
minute_point[0] = CoordinateRelocate(30, angle);
|
||||||
minute_point[1] = CoordinateRelocate(MinuteLength, angle);
|
minute_point[1] = CoordinateRelocate(MinuteLength, angle);
|
||||||
|
@ -203,7 +203,8 @@ void WatchFaceAnalog::UpdateClock() {
|
||||||
lv_line_set_points(hour_body_trace, hour_point_trace, 2);
|
lv_line_set_points(hour_body_trace, hour_point_trace, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sSecond != second) {
|
|
||||||
|
if (second>99 && sSecond != second) { // disable
|
||||||
sSecond = second;
|
sSecond = second;
|
||||||
auto const angle = second * 6;
|
auto const angle = second * 6;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user