Fix speed & power spikes from Powertap G3

G3 hubs intermittently broadcast battery status messages, which
were being treated as telemetry and saved into lastMessage. This
was then corrupting the ANT_WHEELTORQUE_POWER calculations for
speed & power after each battery message.

Note: don't have a G3 to verify this agaist, but this fix makes
sense given the supplied log files!
This commit is contained in:
Jon Escombe
2016-02-16 10:15:52 +00:00
parent 7f78699023
commit aa70fbca81

View File

@@ -343,6 +343,8 @@ void ANTChannel::broadcastEvent(unsigned char *ant_message)
product_id=MANUFACTURER_MODEL_NUMBER_ID(message);
checkCinqo();
} else if (MESSAGE_IS_BATTERY_VOLTAGE(message)) {
// todo: push battery status up to train view when we have a means to display notifications
}
else {
telemetry = true;