MSG feature for display.

Thomas dl3el wrote this feature for displaying the the last personal aprs-messages.
    Thomas dl9sau modified: don't overwrite a personal aprs-message with winlink notification.
                            Display shows "m" for personal message. "W" for winlink info. "M" for both.
    Message is cleared when you cycled through the display up to the ((BN)) screen.

    Thomas dl3el's commit messages:
    - include LastMessage in flip pages
      indicate message unread with an "m" between time & uptime
      flag is cleared when all pages have been flipped through and the manual beacon has been sent

    - move display of buildnr to the last butone flip page. Gives us more space for the message "next button will tx beacon"

Signed-off-by: DL3EL <dl3el@darc.de>
Signed-off-by: Thomas Osterried <dl9sau@darc.de>
pull/12/head
Thomas Osterried 2024-03-21 15:00:54 +01:00
rodzic 19136a6405
commit f5d114b400
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -5470,10 +5470,10 @@ String handle_aprs_messsage_addressed_to_us(const char *received_frame) {
RXMessageTimeAndSender = RXMessageTimeAndSender + String(" ") + String(msg_from) + ":";
String RXMessage = String(header_normal_or_third_party_end + 11+1);
writedisplaytext(" ((MSG))",RXMessageTimeAndSender,RXMessage,"","","");
if (RXMessage.indexOf("foobar") > -1 || (add_winlink_notification &&
if (add_winlink_notification &&
!strncmp(header_normal_or_third_party_start, "WLNK-1", 6) && header_normal_or_third_party_start[6] == '>' &&
!strncmp(header_normal_or_third_party_end + 12, "You have ", 9) &&
strstr(header_normal_or_third_party_end + 20, " Winlink mail messages pending"))) {
strstr(header_normal_or_third_party_end + 20, " Winlink mail messages pending")) {
// Don't overwrite a friend's nessage with winlinkInfo
LastRXMessageInfo |= 2;
if (!(LastRXMessageInfo & 1)) {