Skip to content

Commit e90e121

Browse files
committed
Add debug if state out of range for Bluetooth broadcast
1 parent c844663 commit e90e121

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Firmware/RTK_Surveyor/Bluetooth.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ void bluetoothStart()
154154
strncpy(stateName, "Rover-", sizeof(stateName) - 1);
155155
else if (systemState >= STATE_BASE_NOT_STARTED && systemState <= STATE_BASE_FIXED_TRANSMITTING)
156156
strncpy(stateName, "Base-", sizeof(stateName) - 1);
157+
else
158+
log_d("State out of range for Bluetooth Broadcast: %d", systemState);
157159

158160
snprintf(deviceName, sizeof(deviceName), "%s %s%02X%02X", platformPrefix, stateName, btMACAddress[4],
159161
btMACAddress[5]);

0 commit comments

Comments
 (0)