added longitude

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

@ -3832,7 +3832,23 @@ void prompt_for_input() {
Serial.print("Latitude updated to "); Serial.print("Latitude updated to ");
Serial.print(float_result); Serial.print(float_result);
latitude = float_result; latitude = float_result;
} } else
Serial.print("Latitude not updated");
Serial.print("Current value of longitude is ");
Serial.println(longitude);
Serial.println("Enter longitude (decimal degrees, positive is east): ");
get_serial_string();
float_result = atof(serial_string);
if (float_result != 0.0) {
Serial.print("Longitude updated to ");
Serial.print(float_result);
longitude = float_result;
} else
Serial.print("Longitude not updated");
latitude = toAprsFormat(latitude);
longitude = toAprsFormat(longitude);
break; break;
case PROMPT_QUERY: case PROMPT_QUERY:

Loading…
Cancel
Save

Powered by TurnKey Linux.