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

+3 -2
View File
@@ -94,7 +94,7 @@ static bool decode_after_address(const uint8_t *input, const size_t input_bits,
return false;
const uint32_t found_capcode = (((address >> 13) & 0x3FFFFUL) << 3) | frame;
if (found_capcode != capcode)
if (capcode != POCSAG_ANY_RIC && found_capcode != capcode)
return false;
if (sender != NULL)
@@ -207,7 +207,8 @@ bool POCSAG_Decode(const uint8_t *input, const size_t input_size, const uint32_t
{
const size_t input_bits = input_size * 8U;
if (input == NULL || message == NULL || message_capacity == 0 || capcode > POCSAG_MAX_RIC)
if (input == NULL || message == NULL || message_capacity == 0 ||
(capcode > POCSAG_MAX_RIC && capcode != POCSAG_ANY_RIC))
return false;
message[0] = '\0';