Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Firmware/RTK_Surveyor/NtripServer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,8 @@ void ntripServerPrintStatus ()
// This function gets called as each RTCM byte comes in
void ntripServerProcessRTCM(uint8_t incoming)
{
static uint32_t zedBytesSent;

if (ntripServerState == NTRIP_SERVER_CASTING)
{
// Generate and print timestamp if needed
Expand All @@ -400,7 +402,8 @@ void ntripServerProcessRTCM(uint8_t incoming)
struct tm timeinfo = rtc.getTimeStruct();
char timestamp[30];
strftime(timestamp, sizeof(timestamp), "%Y-%m-%d %H:%M:%S", &timeinfo);
systemPrintf(" Tx RTCM: %s.%03ld, %d bytes sent\r\n", timestamp, rtc.getMillis(), ntripServerBytesSent);
systemPrintf(" Tx RTCM: %s.%03ld, %d bytes sent\r\n", timestamp, rtc.getMillis(), zedBytesSent);
zedBytesSent = 0;
}
previousMilliseconds = currentMilliseconds;
}
Expand All @@ -418,6 +421,7 @@ void ntripServerProcessRTCM(uint8_t incoming)
{
ntripServer->write(incoming); // Send this byte to socket
ntripServerBytesSent++;
zedBytesSent++;
ntripServerTimer = millis();
netOutgoingRTCM = true;
}
Expand Down