@@ -1014,8 +1014,15 @@ bool GNSS_MOSAIC::enableRTCMTest()
10141014// ----------------------------------------
10151015void GNSS_MOSAIC::factoryReset ()
10161016{
1017- sendWithResponse (" eccf,RxDefault,Boot\n\r " , " CopyConfigFile" );
1018- sendWithResponse (" eccf,RxDefault,Current\n\r " , " CopyConfigFile" );
1017+ unsigned long start = millis ();
1018+ bool result = sendWithResponse (" eccf,RxDefault,Boot\n\r " , " CopyConfigFile" , 5000 );
1019+ if (settings.debugGnss )
1020+ systemPrintf (" saveConfiguration: sendWithResponse eccf,RxDefault,Boot returned %s after %d ms\r\n " , result ? " true" : " false" , millis () - start);
1021+
1022+ start = millis ();
1023+ result = sendWithResponse (" eccf,RxDefault,Current\n\r " , " CopyConfigFile" , 5000 );
1024+ if (settings.debugGnss )
1025+ systemPrintf (" saveConfiguration: sendWithResponse eccf,RxDefault,Current returned %s after %d ms\r\n " , result ? " true" : " false" , millis () - start);
10191026}
10201027
10211028// ----------------------------------------
@@ -1935,7 +1942,11 @@ uint16_t GNSS_MOSAIC::rtcmRead(uint8_t *rtcmBuffer, int rtcmBytesToRead)
19351942// ----------------------------------------
19361943bool GNSS_MOSAIC::saveConfiguration ()
19371944{
1938- return sendWithResponse (" eccf,Current,Boot\n\r " , " CopyConfigFile" );
1945+ unsigned long start = millis ();
1946+ bool result = sendWithResponse (" eccf,Current,Boot\n\r " , " CopyConfigFile" , 5000 );
1947+ if (settings.debugGnss )
1948+ systemPrintf (" saveConfiguration: sendWithResponse returned %s after %d ms\r\n " , result ? " true" : " false" , millis () - start);
1949+ return result;
19391950}
19401951
19411952// ----------------------------------------
@@ -2846,12 +2857,12 @@ void processUart1SBF(SEMP_PARSE_STATE *parse, uint16_t type)
28462857{
28472858 GNSS_MOSAIC *mosaic = (GNSS_MOSAIC *)gnss;
28482859
2849- if (((settings.debugGnss == true ) || PERIODIC_DISPLAY (PD_GNSS_DATA_RX)) && !inMainMenu)
2850- {
2851- // Don't call PERIODIC_CLEAR(PD_GNSS_DATA_RX); here. Let processUart1Message do it via rtkParse
2852- systemPrintf (" Processing SBF Block %d (%d bytes) from mosaic-X5\r\n " , sempSbfGetBlockNumber (parse),
2853- parse->length );
2854- }
2860+ // if (((settings.debugGnss == true) || PERIODIC_DISPLAY(PD_GNSS_DATA_RX)) && !inMainMenu)
2861+ // {
2862+ // // Don't call PERIODIC_CLEAR(PD_GNSS_DATA_RX); here. Let processUart1Message do it via rtkParse
2863+ // systemPrintf("Processing SBF Block %d (%d bytes) from mosaic-X5\r\n", sempSbfGetBlockNumber(parse),
2864+ // parse->length);
2865+ // }
28552866
28562867 // If this is PVTGeodetic, extract some data
28572868 if (sempSbfGetBlockNumber (parse) == 4007 )
0 commit comments