Skip to content

Commit c6945d4

Browse files
committed
Update ESP log funtions
1 parent cce9b65 commit c6945d4

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

Firmware/RTK_Surveyor/Form.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,12 +253,12 @@ void onWsEvent(AsyncWebSocket * server, AsyncWebSocketClient * client, AwsEventT
253253
char settingsCSV[3000];
254254
memset(settingsCSV, 0, sizeof(settingsCSV));
255255
createSettingsString(settingsCSV);
256-
ESP_LOGD(TAG, "Sending command: %s\n\r", settingsCSV);
256+
log_d("Sending command: %s\n\r", settingsCSV);
257257
client->text(settingsCSV);
258258
radioState = WIFI_CONNECTED;
259259
}
260260
else if (type == WS_EVT_DISCONNECT) {
261-
ESP_LOGD(TAG, "Websocket client disconnected");
261+
log_d("Websocket client disconnected");
262262
radioState = WIFI_ON_NOCONNECTION;
263263
}
264264
else if (type == WS_EVT_DATA) {

Firmware/RTK_Surveyor/NVM.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ void loadSettings()
22
{
33
if (online.eeprom == false)
44
{
5-
ESP_LOGD(TAG, "Error: EEPROM not online");
5+
log_d("Error: EEPROM not online");
66
return;
77
}
88

@@ -53,15 +53,15 @@ void loadSettingsPartial()
5353
{
5454
if (online.eeprom == false)
5555
{
56-
ESP_LOGD(TAG, "Error: EEPROM not online");
56+
log_d("Error: EEPROM not online");
5757
return;
5858
}
5959

6060
//Check to see if EEPROM is blank
6161
uint32_t testRead = 0;
6262
if (EEPROM.get(0, testRead) == 0xFFFFFFFF)
6363
{
64-
ESP_LOGD(TAG, "EEPROM is blank");
64+
log_d("EEPROM is blank");
6565
return; //EEPROM is blank, assume default settings
6666
}
6767

@@ -87,7 +87,7 @@ void recordSystemSettings()
8787
}
8888
else
8989
{
90-
ESP_LOGD(TAG, "Error: EEPROM not online");
90+
log_d("Error: EEPROM not online");
9191
}
9292

9393
recordSystemSettingsToFile();
@@ -496,7 +496,7 @@ void eepromErase()
496496
{
497497
if(online.eeprom == false)
498498
{
499-
ESP_LOGD(TAG, "Error: EEPROM not online");
499+
log_d("Error: EEPROM not online");
500500
return;
501501
}
502502
for (int i = 0 ; i < EEPROM_SIZE ; i++) {

Firmware/RTK_Surveyor/RTK_Surveyor.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ void updateLogs()
512512
}
513513
else
514514
{
515-
ESP_LOGD(TAG, "Log file: No increase in file size");
515+
log_d("Log file: No increase in file size");
516516
logIncreasing = false;
517517
}
518518
}

Firmware/RTK_Surveyor/States.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ void requestChangeState(SystemState requestedState)
683683
{
684684
newSystemStateRequested = true;
685685
requestedSystemState = requestedState;
686-
ESP_LOGD(TAG, "Requested System State: %d", requestedSystemState);
686+
log_d("Requested System State: %d", requestedSystemState);
687687
}
688688

689689
//Change states and print the new state

Firmware/RTK_Surveyor/System.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ bool createTestFile()
601601

602602
if(xFATSemaphore == NULL)
603603
{
604-
ESP_LOGD(TAG, "xFATSemaphote is Null");
604+
log_d("xFATSemaphote is Null");
605605
return(false);
606606
}
607607

Firmware/RTK_Surveyor/menuGNSS.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ bool configureConstellations()
258258
//Reset to factory defaults.
259259
if (settings.ubxConstellations[0].gnssID == 255)
260260
{
261-
ESP_LOGD(TAG, "Constellation ID corrupt");
261+
log_d("Constellation ID corrupt");
262262
factoryReset();
263263
}
264264

0 commit comments

Comments
 (0)