Skip to content

Commit e8760b2

Browse files
committed
Increase size of temp in displayMessageFont - resolves #800
1 parent b2bb297 commit e8760b2

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

Firmware/RTK_Surveyor/Display.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2988,7 +2988,7 @@ void displayMessageFont(const char *message, uint16_t displayTime, bool smallFon
29882988
{
29892989
if (online.display == true)
29902990
{
2991-
char temp[21];
2991+
char temp[threeLinesOfText];
29922992
uint8_t fontHeight = 16; // Assume fontsize 1
29932993
if (smallFont)
29942994
fontHeight = 10;

Firmware/RTK_Surveyor/PvtServer.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ void paintPvtServerIP()
609609
if (network)
610610
localIp = networkGetIpAddress(network->type);
611611

612-
char message[31];
612+
char message[threeLinesOfText];
613613

614614
snprintf(message, sizeof(message), "%d.%d. %d.%d: %d",
615615
localIp[0], localIp[1], localIp[2], localIp[3],

Firmware/RTK_Surveyor/PvtUdpServer.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ void paintUdpServerIP()
388388
if (network)
389389
localIp = networkGetIpAddress(network->type);
390390

391-
char message[31];
391+
char message[threeLinesOfText];
392392

393393
snprintf(message, sizeof(message), "%d.%d. %d.%d: %d",
394394
localIp[0], localIp[1], localIp[2], localIp[3],

Firmware/RTK_Surveyor/RTK_Surveyor.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,8 @@ const uint8_t btMaxEscapeCharacters = 3; // Number of characters needed to enter
482482
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
483483
#include <SparkFun_Qwiic_OLED.h> //http://librarymanager/All#SparkFun_Qwiic_Graphic_OLED
484484

485+
const int threeLinesOfText = 31; // char array size for three lines of text
486+
485487
#if COMPILE_NETWORK
486488
bool pvtServerRunning(); // Header
487489
bool pvtUdpServerRunning(); // Header

0 commit comments

Comments
 (0)