In line 286: the test is !='E' paritybit?false:true
then at a later stage paritybit = (b&1) ^ paritybit;
The parity will be calculated incorrectly it should instead be
if (_parity == 'E' paritybit ? false:true)
Then the parity bit will be set correctly.
|
bool parityBit = _parity!='E' ? false : true; |
Best regards,
Nat
In line 286: the test is !='E' paritybit?false:true
then at a later stage paritybit = (b&1) ^ paritybit;
The parity will be calculated incorrectly it should instead be
if (_parity == 'E' paritybit ? false:true)
Then the parity bit will be set correctly.
ConfigurableSoftwareSerial/ConfigurableSoftwareSerial.cpp
Line 286 in 0458b25
Best regards,
Nat