TX seems to work

This commit is contained in:
2026-11-14 23:55:43 +01:00
parent c90f4b843d
commit ccf49de07b
27 changed files with 1163 additions and 482 deletions

No files matched your search

+11 -2
View File
@@ -28,7 +28,7 @@ void UI_DisplayMessages(void) {
UI_DisplayClear();
if (gEnteringSMS != SMS_NOT_ENTERING) {
if (gEnteringSMS == SMS_ENTERING_DEST) {
UI_PrintString("SMS dest", 0, 0, 0 /*, 8 */);
UI_PrintString(gEeprom.FSKMode == MOD_POCSAG_1200 ? "RIC" : "SMS dest", 0, 0, 0 /*, 8 */);
u32_to_str(dataPacket.dest, String);
UI_PrintStringSmallNormal(String, 0, 0, 2);
} else if (gEnteringSMS == SMS_ENTERING_MESSAGE) {
@@ -63,7 +63,16 @@ void UI_DisplayMessages(void) {
MESSAGES_GET();
// Build the display string
u32_to_str(gActiveMessage == MESSAGES_COUNT ? dataPacket.dest : loadedPacket.src, &String[0]);
if (loadedPacket.flags & MESSAGE_FLAG_POCSAG) {
char capcodeString[11];
u32_to_str(loadedPacket.src, capcodeString);
String[0] = 'P';
String[1] = ':';
memcpy(String + 2, capcodeString + 3, 7);
String[9] = ' ';
} else {
u32_to_str(gActiveMessage == MESSAGES_COUNT ? dataPacket.dest : loadedPacket.src, &String[0]);
}
String[10] = '-';
u8_to_str(loadedPacket.seq, &String[11]);
String[14] = '-';