|
@@ -229,16 +229,21 @@ void showTime(void) {
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- tube4_t buf;
|
|
|
- if ((Clock.Hr & 0xf0) == 0) {
|
|
|
- buf.s8.tA = TUBE_BLANK;
|
|
|
+ if (Clock.Sec != 0) {
|
|
|
+ tube4_t buf;
|
|
|
+ uint8_t hour = Clock.Hr >> 4;
|
|
|
+ if (hour == 0) {
|
|
|
+ buf.s8.tA = TUBE_BLANK;
|
|
|
+ } else {
|
|
|
+ buf.s8.tA = hour;
|
|
|
+ }
|
|
|
+ buf.s8.tB = Clock.Hr & 0xf;
|
|
|
+ buf.s8.tD = Clock.Min >> 4;
|
|
|
+ buf.s8.tE = Clock.Min & 0xf;
|
|
|
+ showDigits(buf);
|
|
|
} else {
|
|
|
- buf.s8.tA = Clock.Hr >> 4;
|
|
|
+ tube_Refresh();
|
|
|
}
|
|
|
- buf.s8.tB = Clock.Hr & 0xf;
|
|
|
- buf.s8.tD = Clock.Min >> 4;
|
|
|
- buf.s8.tE = Clock.Min & 0xf;
|
|
|
- showDigits(buf);
|
|
|
}
|
|
|
|
|
|
void showMMSS(void) {
|