|
@@ -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:
|