|
@@ -671,6 +671,7 @@ static void btn2_handler(button_state_t state) {
|
|
|
charger_Channel = INA3221_CH1;
|
|
|
break;
|
|
|
}
|
|
|
+ gwinPrintf(GW1, "Channel #%u selected.\n", (int)charger_Channel + 1);
|
|
|
show_MenuItem(MenuItem_1);
|
|
|
}
|
|
|
break;
|
|
@@ -680,6 +681,7 @@ static void btn2_handler(button_state_t state) {
|
|
|
if (charger_Profile >= ACCUM_PRIFILE_NUM) {
|
|
|
charger_Profile = 0;
|
|
|
}
|
|
|
+ gwinPrintf(GW1, "Select profile for %s\n", Profile[charger_Profile].Description);
|
|
|
show_MenuItem(MenuItem_2);
|
|
|
break;
|
|
|
|
|
@@ -765,8 +767,6 @@ static void show_MenuItem(const int item) {
|
|
|
switch (item) {
|
|
|
case MenuItem_1:
|
|
|
tmp = (int)charger_Channel + 1;
|
|
|
- gwinPrintf(GW1, "Channel #%u selected.\n", tmp);
|
|
|
-
|
|
|
chsnprintf(buf1, 10, "[1] ch.%u", tmp);
|
|
|
chsnprintf(buf2, 12, "%2uA", charger_Channels[charger_Channel].max_current/1000);
|
|
|
|
|
@@ -776,8 +776,6 @@ static void show_MenuItem(const int item) {
|
|
|
break;
|
|
|
|
|
|
case MenuItem_2:
|
|
|
- gwinPrintf(GW1, "Select profile for %s\n", Profile[charger_Profile].Description);
|
|
|
-
|
|
|
chsnprintf(buf1, 10, "[2] %s", Profile[charger_Profile].Chemistry);
|
|
|
tmp = Profile[charger_Profile].Capacity_mAh / 1000;
|
|
|
chsnprintf(buf2, 12, "%s/%uAh", Profile[charger_Profile].VoltageNominal, tmp);
|