[Pager] Implemented inversion for receive (#641)
This commit is contained in:
parent
b57e7275fd
commit
60b73d5ccd
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue