Quellcode durchsuchen

Fix pauses time.

Vladimir N. Shilov vor 2 Jahren
Ursprung
Commit
0a846d5942
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      src/main.c

+ 2 - 2
src/main.c

@@ -479,7 +479,7 @@ int main(void) {
         tmp2 = (tmp0 % 1000) / 10;
         gwinPrintf(GW1, "/%2u.%02u\n", tmp1, tmp2);
         gdispFillStringBox(1, 213, 318, 29, "Pause 1", font2, Red, Silver, gJustifyCenter);
-        chVTSet(&mode_vt, CHRGR_PAUSE1_S, mode_vt_cb, (void *)Decharge);
+        chVTSet(&mode_vt, TIME_S2I(CHRGR_PAUSE1_S), mode_vt_cb, (void *)Decharge);
         break;
 
       case Decharge:
@@ -519,7 +519,7 @@ int main(void) {
         tmp2 = (tmp0 % 1000) / 10;
         gwinPrintf(GW1, "/%2u.%02u\n", tmp1, tmp2);
         gdispFillStringBox(1, 213, 318, 29, "Pause 2", font2, Red, Silver, gJustifyCenter);
-        chVTSet(&mode_vt, CHRGR_PAUSE2_S, mode_vt_cb, (void *)Charge2);
+        chVTSet(&mode_vt, TIME_S2I(CHRGR_PAUSE2_S), mode_vt_cb, (void *)Charge2);
         break;
 
       case Charge2: