typo on float

pull/182/head
alanbjohnston 3 years ago committed by GitHub
parent c124fc0de8
commit 933b146d5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3827,7 +3827,7 @@ void prompt_for_input() {
Serial.println("Enter latitude (decimal degrees, positive is north): "); Serial.println("Enter latitude (decimal degrees, positive is north): ");
get_serial_string(); get_serial_string();
float result = atof(serial_string); float result = atof(serial_string);
if (float != 0.0) { if (result != 0.0) {
Serial.print("Latitude updated to "); Serial.print("Latitude updated to ");
Serial.print(result); Serial.print(result);
latitude = result; latitude = result;

Loading…
Cancel
Save

Powered by TurnKey Linux.