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

@ -3826,11 +3826,12 @@ void prompt_for_input() {
Serial.println(latitude);
Serial.println("Enter latitude (decimal degrees, positive is north): ");
get_serial_string();
float result = atof(serial_string);
if (result != 0.0) {
float float_result = atof(serial_string);
if (float_result != 0.0) {
Serial.print("Latitude updated to ");
Serial.print(result);
latitude = result;
Serial.print(float_result);
latitude = float_result;
}
break;
case PROMPT_QUERY:

Loading…
Cancel
Save

Powered by TurnKey Linux.