Mission planner: Fixed battery capacity validation

This commit is contained in:
Janne M 2011-09-19 19:23:05 +03:00
parent 9e3967d4c4
commit a502d04e6e

View File

@ -434,7 +434,7 @@ namespace ArdupilotMega.Setup
private void TXT_battcapacity_Validating(object sender, CancelEventArgs e)
{
float ans = 0;
e.Cancel = !float.TryParse(TXT_declination.Text, out ans);
e.Cancel = !float.TryParse(TXT_battcapacity.Text, out ans);
}
private void CMB_batmontype_SelectedIndexChanged(object sender, EventArgs e)