POCSAG: show '?' for characters from uncorrectable codewords (#3138)

Use per-character error tracking to substitute '?' when a
character's bits came from an uncorrectable codeword (BCH error_count >= 3). 
Previously these displayed as garbage.
This commit is contained in:
VasylSamoilov
2026-04-18 19:56:33 +03:00
committed by GitHub
parent c095a88cb3
commit 396f8aef41
2 changed files with 22 additions and 10 deletions
+3 -2
View File
@@ -282,8 +282,9 @@ void POCSAGAppView::handle_decoded(Timestamp timestamp, const std::string& prefi
/* Serial: header + first chunk.
* hex field contains rendered alpha as hex bytes (color escapes
* stripped). Non-printable and uncorrectable chars show as '.'
* (0x2E) — original 7-bit values are not preserved.
* stripped). Non-printable chars show as '.' (0x2E),
* uncorrectable chars show as '?' (0x3F) — original 7-bit
* values are not preserved.
* Numeric decode goes in the quoted message field only. */
if (portapack::usb_serial.serial_connected()) {
/* Build hex representation of decoded alpha characters. */