PressureWrapper: get_Pressure: fix to condition of crc check
This commit is contained in:
parent
cf21bacbf2
commit
56e63e3e20
@ -43,7 +43,7 @@ int PressureWrapper::getPressure() {
|
||||
getRawPressure ();
|
||||
i = 0;
|
||||
}
|
||||
if(crc8(data.rBuffer, 2) != data.crc){
|
||||
if(crc8(data.rBuffer, 2) == data.crc){
|
||||
pressure = data.rBuffer[0];
|
||||
pressure = pressure << 8;
|
||||
pressure |= data.rBuffer[1];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user