now also on a pager
This commit is contained in:
No files matched your search
+3
-2
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user