Skip to content

Commit a04b5d1

Browse files
committed
Default Bluetooth name if state out of range
1 parent f5d9ac4 commit a04b5d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Firmware/RTK_Surveyor/Bluetooth.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,10 @@ void bluetoothStart()
156156
else if (systemState >= STATE_BASE_NOT_STARTED && systemState <= STATE_BASE_FIXED_TRANSMITTING)
157157
strncpy(stateName, "Base-", sizeof(stateName) - 1);
158158
else
159+
{
160+
strncpy(stateName, "Rover-", sizeof(stateName) - 1);
159161
log_d("State out of range for Bluetooth Broadcast: %d", systemState);
162+
}
160163

161164
char productName[50] = {0};
162165
strncpy(productName, platformPrefix, sizeof(productName));

0 commit comments

Comments
 (0)