Skip to content

Commit c1afa45

Browse files
committed
Fix buffer overrun with longer device name
1 parent a45c50c commit c1afa45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Firmware/RTK_Surveyor/RTK_Surveyor.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ float lBandEBNO = 0.0; //Used on system status menu
381381
//Global variables
382382
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
383383
uint8_t unitMACAddress[6]; //Use MAC address in BT broadcast and display
384-
char deviceName[20]; //The serial string that is broadcast. Ex: 'Surveyor Base-BC61'
384+
char deviceName[30]; //The serial string that is broadcast. Ex: 'Surveyor Base-BC61'
385385
const byte menuTimeout = 15; //Menus will exit/timeout after this number of seconds
386386
int systemTime_minutes = 0; //Used to test if logging is less than max minutes
387387
uint32_t powerPressedStartTime = 0; //Times how long user has been holding power button, used for power down

0 commit comments

Comments
 (0)