Поправил UI, добавил команду автотренировки аккумулятора

This commit is contained in:
ftc
2024-03-10 16:09:35 +03:00
parent f586f4174c
commit ac7045e063
10 changed files with 189 additions and 64 deletions
+3 -2
View File
@@ -32,14 +32,15 @@ namespace charger_gui.operations
model.IsCharging = false;
model.IsLampOn = true;
Thread.Sleep(500);
while (model.U2Acc > MIN_VOLTAGE)
while (model.U3 > MIN_VOLTAGE)
{
Thread.Sleep(1000);
passed = (int)((DateTime.Now - start).TotalSeconds);
OnStatusChanged();
log.Log("Discharging " + passed + "s " + model.U2Acc.ToString("F4"));
log.Log("Discharging " + passed + "s " + model.U3.ToString("F4"));
}
log.Log("Discharging complete in " + passed + " seconds");
model.IsLampOn = false;
isComplete = true;
OnStatusChanged();
}