Skip to content

Commit

Permalink
strain is AS_OVF not anymore if byte 7th is "== 1" but "!= 0", so tha…
Browse files Browse the repository at this point in the history
…t we can maintain compatibility with extra overflow information recently added in strain can messages.
  • Loading branch information
marcoaccame committed Nov 13, 2015
1 parent 6d9d264 commit bbc6b9e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ void CanBusAnalogSensor::run()
}
else
{
if (len==7 && buff[6] == 1)
if ((len==7) && (buff[6] != 0)) // changed from "== 1" in order to maintain compatibility with extra overflow information in byte 6.
{
status=IAnalogSensor::AS_OVF;
}
Expand Down

0 comments on commit bbc6b9e

Please sign in to comment.