Skip to content

Commit

Permalink
Rename define
Browse files Browse the repository at this point in the history
  • Loading branch information
nseidle committed Dec 18, 2024
1 parent 90c76d5 commit efd7b2a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions Firmware/RTK_Everywhere/Tasks.ino
Original file line number Diff line number Diff line change
Expand Up @@ -289,18 +289,18 @@ void sendGnssBuffer()
{
if (gnss->pushRawData(bluetoothOutgoingToGnss, bluetoothOutgoingToGnssHead))
{
if ((settings.debugCorrections || PERIODIC_DISPLAY(PD_ZED_DATA_TX)) && !inMainMenu)
if ((settings.debugCorrections || PERIODIC_DISPLAY(PD_GNSS_DATA_TX)) && !inMainMenu)
{
PERIODIC_CLEAR(PD_ZED_DATA_TX);
PERIODIC_CLEAR(PD_GNSS_DATA_TX);
systemPrintf("Sent %d BT bytes to GNSS\r\n", bluetoothOutgoingToGnssHead);
}
}
}
else
{
if ((settings.debugCorrections || PERIODIC_DISPLAY(PD_ZED_DATA_TX)) && !inMainMenu)
if ((settings.debugCorrections || PERIODIC_DISPLAY(PD_GNSS_DATA_TX)) && !inMainMenu)
{
PERIODIC_CLEAR(PD_ZED_DATA_TX);
PERIODIC_CLEAR(PD_GNSS_DATA_TX);
systemPrintf("%d BT bytes NOT sent due to priority\r\n", bluetoothOutgoingToGnssHead);
}
}
Expand Down Expand Up @@ -573,9 +573,9 @@ void processUart1Message(SEMP_PARSE_STATE *parse, uint16_t type)
int32_t use;

// Display the message
if ((settings.enablePrintLogFileMessages || PERIODIC_DISPLAY(PD_ZED_DATA_RX)) && (!parse->crc) && (!inMainMenu))
if ((settings.enablePrintLogFileMessages || PERIODIC_DISPLAY(PD_GNSS_DATA_RX)) && (!parse->crc) && (!inMainMenu))
{
PERIODIC_CLEAR(PD_ZED_DATA_RX);
PERIODIC_CLEAR(PD_GNSS_DATA_RX);
if (settings.enablePrintLogFileMessages)
{
printTimeStamp();
Expand Down
8 changes: 4 additions & 4 deletions Firmware/RTK_Everywhere/menuSystem.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1147,10 +1147,10 @@ void menuPeriodicPrint()
systemPrintf("%s\r\n", PERIODIC_SETTING(PD_WIFI_STATE) ? "Enabled" : "Disabled");

systemPrint("8) ZED RX data: ");
systemPrintf("%s\r\n", PERIODIC_SETTING(PD_ZED_DATA_RX) ? "Enabled" : "Disabled");
systemPrintf("%s\r\n", PERIODIC_SETTING(PD_GNSS_DATA_RX) ? "Enabled" : "Disabled");

systemPrint("9) ZED TX data: ");
systemPrintf("%s\r\n", PERIODIC_SETTING(PD_ZED_DATA_TX) ? "Enabled" : "Disabled");
systemPrintf("%s\r\n", PERIODIC_SETTING(PD_GNSS_DATA_TX) ? "Enabled" : "Disabled");

systemPrintln("----- Software -----");

Expand Down Expand Up @@ -1270,9 +1270,9 @@ void menuPeriodicPrint()
else if (incoming == 7)
PERIODIC_TOGGLE(PD_WIFI_STATE);
else if (incoming == 8)
PERIODIC_TOGGLE(PD_ZED_DATA_RX);
PERIODIC_TOGGLE(PD_GNSS_DATA_RX);
else if (incoming == 9)
PERIODIC_TOGGLE(PD_ZED_DATA_TX);
PERIODIC_TOGGLE(PD_GNSS_DATA_TX);

else if (incoming == 20)
{
Expand Down
4 changes: 2 additions & 2 deletions Firmware/RTK_Everywhere/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ enum PeriodDisplayValues
PD_CELLULAR_STATE, // 28
PD_WIFI_STATE, // 29

PD_ZED_DATA_RX, // 30
PD_ZED_DATA_TX, // 31
PD_GNSS_DATA_RX, // 30
PD_GNSS_DATA_TX, // 31

PD_MQTT_CLIENT_DATA, // 32
PD_MQTT_CLIENT_STATE, // 33
Expand Down

0 comments on commit efd7b2a

Please sign in to comment.