Ver Fonte

Fix pauses time.

Vladimir N. Shilov há 2 anos atrás
pai
commit
0a846d5942
1 ficheiros alterados com 2 adições e 2 exclusões
  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: