mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 00:28:42 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user