Калибровка датчика тока. Корректно замеряем напряжение на аккуме.
This commit is contained in:
@@ -60,6 +60,16 @@ namespace charger_gui
|
||||
model.IsCharging = !model.IsCharging;
|
||||
}
|
||||
|
||||
private void CalibrateButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (model.CurrentOperation != null)
|
||||
{
|
||||
model.CurrentOperation.Cancel();
|
||||
}
|
||||
model.CurrentOperation = new CalibrateOperation(log, model);
|
||||
model.CurrentOperation.Start();
|
||||
}
|
||||
|
||||
private void DischargeButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (model.CurrentOperation != null)
|
||||
@@ -92,7 +102,7 @@ namespace charger_gui
|
||||
protected override void OnClosed(EventArgs e)
|
||||
{
|
||||
base.OnClosed(e);
|
||||
Application.Current.Shutdown();
|
||||
Environment.Exit(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user