now also on a pager

This commit is contained in:
2026-11-15 00:29:01 +01:00
parent ccf49de07b
commit e7ae3d3ee8
6 changed files with 122 additions and 10 deletions

No files matched your search

+5
View File
@@ -86,6 +86,11 @@ int main(void)
}
}
// Monitor mode: any address decodes and reports the RIC.
assert(POCSAG_Encode(1234567U, "Ahoj", frame, sizeof(frame), NULL));
assert(POCSAG_Decode(frame, sizeof(frame), POCSAG_ANY_RIC, &sender, decoded, sizeof(decoded)));
assert(sender == 1234567U && strcmp(decoded, "Ahoj") == 0);
assert(!POCSAG_Encode(0x200000U, "bad", frame, sizeof(frame), NULL));
assert(!POCSAG_Encode(123U, "", frame, sizeof(frame), NULL));
assert(!POCSAG_Encode(123U, "123456789012345678901", frame, sizeof(frame), NULL));