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;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
case 0x288: {
|
case 0x320: {
|
||||||
cluster->state.temp = (double)(frame->data[1] - 48 * 0.75);
|
cluster->state.fuel = (double)(frame->data[2] & 0xf) / 16.0;
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
case 0x320: {
|
case 0x420: {
|
||||||
cluster->state.fuel = (double)(frame->data[2] & 0xf) / 16.0;
|
cluster->state.temp = 0.75 * (double)(frame->data[4] - 64);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue