kopia lustrzana https://github.com/jgromes/RadioLib
[Pager] Implemented inversion for receive (#641)
rodzic
b57e7275fd
commit
60b73d5ccd
|
@ -469,6 +469,11 @@ uint32_t PagerClient::read() {
|
||||||
codeWord |= (uint32_t)_phy->read() << 8;
|
codeWord |= (uint32_t)_phy->read() << 8;
|
||||||
codeWord |= (uint32_t)_phy->read();
|
codeWord |= (uint32_t)_phy->read();
|
||||||
|
|
||||||
|
// check if we need to invert bits
|
||||||
|
if(inv) {
|
||||||
|
codeWord = ~codeWord;
|
||||||
|
}
|
||||||
|
|
||||||
// TODO BCH error correction here
|
// TODO BCH error correction here
|
||||||
return(codeWord);
|
return(codeWord);
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue