[Pager] Implemented inversion for receive (#641)

pull/648/head
jgromes 2022-12-12 21:07:35 +01:00
rodzic b57e7275fd
commit 60b73d5ccd
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -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);
}