cs and c
This commit is contained in:
@@ -23,7 +23,7 @@ void decode_byte(uint8_t in, uint8_t* nibble){
|
||||
// Check parity bits
|
||||
uint8_t error = 0;
|
||||
if ((p0 ^ d0 ^ d1 ^ d2) != 0) error |= 0x01; // Error in p0 group
|
||||
if ((p1 ^ d0 ^ d1 ^ d3) != 0) error |= 0x02; // Error in p1 group
|
||||
if ((p1 ^ d0 ^ d1 ^ d3) != 0) error |= 0x02; // Error in p1 group // 0000111
|
||||
if ((p2 ^ d0 ^ d2 ^ d3) != 0) error |= 0x04; // Error in p2 group
|
||||
|
||||
if (MSB == 0 && error != 0) {
|
||||
|
||||
Reference in New Issue
Block a user