|
@@ -377,7 +377,6 @@ static void HSV2LED(const uint8_t hue, const uint8_t val) {
|
|
* Show info on tubes.
|
|
* Show info on tubes.
|
|
*/
|
|
*/
|
|
void showTime(void) {
|
|
void showTime(void) {
|
|
- static tube4_t old_buf;
|
|
|
|
uint8_t hue;
|
|
uint8_t hue;
|
|
MinusFadeIn();
|
|
MinusFadeIn();
|
|
RTOS_SetTask(MinusFadeOut, 500, 0);
|
|
RTOS_SetTask(MinusFadeOut, 500, 0);
|
|
@@ -402,12 +401,7 @@ void showTime(void) {
|
|
buf.s8.tB = Clock.Hr & 0xf;
|
|
buf.s8.tB = Clock.Hr & 0xf;
|
|
buf.s8.tD = Clock.Min >> 4;
|
|
buf.s8.tD = Clock.Min >> 4;
|
|
buf.s8.tE = Clock.Min & 0xf;
|
|
buf.s8.tE = Clock.Min & 0xf;
|
|
- if (Clock.Sec == 0) {
|
|
|
|
- lShiftDigits(old_buf, buf);
|
|
|
|
- old_buf = buf;
|
|
|
|
- } else {
|
|
|
|
- showDigits(buf);
|
|
|
|
- }
|
|
|
|
|
|
+ showDigits(buf);
|
|
}
|
|
}
|
|
|
|
|
|
void showMMSS(void) {
|
|
void showMMSS(void) {
|