@@ -1014,8 +1014,15 @@ bool GNSS_MOSAIC::enableRTCMTest()
1014
1014
// ----------------------------------------
1015
1015
void GNSS_MOSAIC::factoryReset ()
1016
1016
{
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);
1019
1026
}
1020
1027
1021
1028
// ----------------------------------------
@@ -1935,7 +1942,11 @@ uint16_t GNSS_MOSAIC::rtcmRead(uint8_t *rtcmBuffer, int rtcmBytesToRead)
1935
1942
// ----------------------------------------
1936
1943
bool GNSS_MOSAIC::saveConfiguration ()
1937
1944
{
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;
1939
1950
}
1940
1951
1941
1952
// ----------------------------------------
@@ -2846,12 +2857,12 @@ void processUart1SBF(SEMP_PARSE_STATE *parse, uint16_t type)
2846
2857
{
2847
2858
GNSS_MOSAIC *mosaic = (GNSS_MOSAIC *)gnss;
2848
2859
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
+ // }
2855
2866
2856
2867
// If this is PVTGeodetic, extract some data
2857
2868
if (sempSbfGetBlockNumber (parse) == 4007 )
0 commit comments