diff --git a/src/protocols/Pager/Pager.cpp b/src/protocols/Pager/Pager.cpp index 01fbbe98..086dcf38 100644 --- a/src/protocols/Pager/Pager.cpp +++ b/src/protocols/Pager/Pager.cpp @@ -469,6 +469,11 @@ uint32_t PagerClient::read() { codeWord |= (uint32_t)_phy->read() << 8; codeWord |= (uint32_t)_phy->read(); + // check if we need to invert bits + if(inv) { + codeWord = ~codeWord; + } + // TODO BCH error correction here return(codeWord); }