diff --git a/Nextion.cpp b/Nextion.cpp index c88c029..67a4727 100644 --- a/Nextion.cpp +++ b/Nextion.cpp @@ -454,7 +454,7 @@ void CNextion::writeDMRGPSInt(unsigned int slotNo, float latitude, float longitu int minutesLon = (int)((longitude - (float)degreeLon) * 60.0); float secondsLon = (float)((longitude - (float)degreeLon - (float)minutesLon / 60.0) * 60.0 * 60.0); - ::sprintf(text, "%d°%d'%.2f\"%c %d°%d'%.2f\"%c",degreeLat,minutesLat,secondsLat,Lat,degreeLon,minutesLon,secondsLon,Lon); + ::sprintf(text, "t%d.txt=\"%d%c%d'%.2f\\\" %c %d%c%d'%.2f\\\" %c\"",2*slotNo+7,degreeLat,176U,minutesLat,secondsLat,Lat,degreeLon,176U,minutesLon,secondsLon,Lon); if (slotNo == 1U) { sendCommand(text); diff --git a/Nextion_ON7LDS/NX4832T035-L3.HMI b/Nextion_ON7LDS/NX4832T035-L3.HMI index 3d70039..ed9b9b9 100644 Binary files a/Nextion_ON7LDS/NX4832T035-L3.HMI and b/Nextion_ON7LDS/NX4832T035-L3.HMI differ diff --git a/Nextion_ON7LDS/README.md b/Nextion_ON7LDS/README.md index efcefd2..a908fc4 100644 --- a/Nextion_ON7LDS/README.md +++ b/Nextion_ON7LDS/README.md @@ -13,7 +13,7 @@ are activated. Layout 2 is a no-nonsense layout. It is the original (G4KLX) layout with the Talker Alias added. TA color and fonts size can not be changed. At least not easily. -Layout 3 (as is 4) is a layout without any predefined layout options (color, fonts). All layout processing can and should be done in the display ittself. +Layout 3 (as is 4) is a layout without any predefined layout options (color, fonts). It sends the fields *and* information about what was sent to the display, so all layout processing can and should be done in the display ittself. More information about the layouts can be found in * README-L2 for the screenLayout 2 setting