From ba14538921ab151ffdcd1207948dba26d68d3252 Mon Sep 17 00:00:00 2001 From: LolloDev Date: Tue, 9 Jan 2024 23:43:42 +0000 Subject: [PATCH] Remove messenger title for 5th line --- app/messenger.c | 13 +++++++------ app/messenger.h | 2 +- ui/messenger.c | 10 +++++----- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/app/messenger.c b/app/messenger.c index 95a2874..e5c9530 100644 --- a/app/messenger.c +++ b/app/messenger.c @@ -36,7 +36,7 @@ char cMessage[TX_MSG_LENGTH]; char msgFreqInfo[30]; #endif char lastcMessage[TX_MSG_LENGTH]; -char rxMessage[4][TX_MSG_LENGTH + 3]; +char rxMessage[5][TX_MSG_LENGTH + 3]; unsigned char cIndex = 0; unsigned char prevKey = 0, prevLetter = 0; KeyboardType keyboardType = UPPERCASE; @@ -540,9 +540,10 @@ void moveUP(char (*rxMessages)[TX_MSG_LENGTH + 3]) strcpy(rxMessages[0], rxMessages[1]); strcpy(rxMessages[1], rxMessages[2]); strcpy(rxMessages[2], rxMessages[3]); + strcpy(rxMessages[3], rxMessages[4]); // Insert the new line at the last position - memset(rxMessages[3], 0, sizeof(rxMessages[3])); + memset(rxMessages[4], 0, sizeof(rxMessages[4])); } void MSG_Send(const char txMessage[TX_MSG_LENGTH], bool bServiceMessage) @@ -583,7 +584,7 @@ void MSG_Send(const char txMessage[TX_MSG_LENGTH], bool bServiceMessage) if (!bServiceMessage) { moveUP(rxMessage); - sprintf(rxMessage[3], "> %s", txMessage); + sprintf(rxMessage[4], "> %s", txMessage); memset(lastcMessage, 0, sizeof(lastcMessage)); memcpy(lastcMessage, txMessage, TX_MSG_LENGTH); cIndex = 0; @@ -653,7 +654,7 @@ void MSG_StorePacket(const uint16_t interrupt_bits) if (msgFSKBuffer[5] == 'R' && msgFSKBuffer[6] == 'C' && msgFSKBuffer[7] == 'V' && msgFSKBuffer[8] == 'D') { UART_printf("SVC