Fix upper end of fuel reading

This commit is contained in:
XANTRONIX Development 2019-06-14 01:33:21 -05:00
parent e513fc1083
commit 130b29605c

View file

@ -89,7 +89,7 @@ int hexagram_cluster_update(hexagram_cluster *cluster,
}
case 0x320: {
cluster->state.fuel = (double)(frame->data[2] & 0xf) / 16.0;
cluster->state.fuel = (double)(frame->data[2] & 0xf) / 15.0;
return 1;
}