Fix coolant temperature calculation
This commit is contained in:
parent
20121f12ef
commit
e539078cf9
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue