Fix coolant temperature calculation

This commit is contained in:
XANTRONIX Development 2019-06-13 23:24:04 -05:00
parent 20121f12ef
commit e539078cf9

View file

@ -82,14 +82,14 @@ int hexagram_cluster_update(hexagram_cluster *cluster,
return 1;
}
case 0x288: {
cluster->state.temp = (double)(frame->data[1] - 48 * 0.75);
case 0x320: {
cluster->state.fuel = (double)(frame->data[2] & 0xf) / 16.0;
return 1;
}
case 0x320: {
cluster->state.fuel = (double)(frame->data[2] & 0xf) / 16.0;
case 0x420: {
cluster->state.temp = 0.75 * (double)(frame->data[4] - 64);
return 1;
}