Vladimir N. Shilov пре 2 година
родитељ
комит
0a846d5942
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/main.c

+ 2 - 2
src/main.c

@@ -479,7 +479,7 @@ int main(void) {
         tmp2 = (tmp0 % 1000) / 10;
         tmp2 = (tmp0 % 1000) / 10;
         gwinPrintf(GW1, "/%2u.%02u\n", tmp1, tmp2);
         gwinPrintf(GW1, "/%2u.%02u\n", tmp1, tmp2);
         gdispFillStringBox(1, 213, 318, 29, "Pause 1", font2, Red, Silver, gJustifyCenter);
         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;
         break;
 
 
       case Decharge:
       case Decharge:
@@ -519,7 +519,7 @@ int main(void) {
         tmp2 = (tmp0 % 1000) / 10;
         tmp2 = (tmp0 % 1000) / 10;
         gwinPrintf(GW1, "/%2u.%02u\n", tmp1, tmp2);
         gwinPrintf(GW1, "/%2u.%02u\n", tmp1, tmp2);
         gdispFillStringBox(1, 213, 318, 29, "Pause 2", font2, Red, Silver, gJustifyCenter);
         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;
         break;
 
 
       case Charge2:
       case Charge2: