solar clock: display North and East around the wrong way

master
adrian w kirk 2021-07-17 21:36:20 +01:00
parent ecf497d010
commit 9ffb1062eb
1 changed files with 2 additions and 2 deletions

View File

@ -169,9 +169,9 @@ function write_GPS_status(){
var gps_coords_msg_n; var gps_coords_msg_n;
var gps_coords_msg_e; var gps_coords_msg_e;
if(gps_coords != null){ if(gps_coords != null){
gps_coords_msg_n = "N: " + gps_coords[0]; gps_coords_msg_n = "N: " + gps_coords[1];
gps_coords_msg_n = gps_coords_msg_n.substr(0,Math.min(gps_coords_msg_n.length - 1,10)); gps_coords_msg_n = gps_coords_msg_n.substr(0,Math.min(gps_coords_msg_n.length - 1,10));
gps_coords_msg_e = "E: " + gps_coords[1]; gps_coords_msg_e = "E: " + gps_coords[0];
gps_coords_msg_e = gps_coords_msg_e.substr(0,Math.min(gps_coords_msg_e.length - 1,10)); gps_coords_msg_e = gps_coords_msg_e.substr(0,Math.min(gps_coords_msg_e.length - 1,10));
} else { } else {
gps_coords_msg_n = ""; gps_coords_msg_n = "";