Be sure to feed values to shift indicator

This commit is contained in:
XANTRONIX Development 2024-01-09 11:07:57 -05:00
parent 5f68484afa
commit eda71d1d0c

View file

@ -41,7 +41,10 @@ cdef cluster_update(cluster: Cluster,
hexagram_window *window, hexagram_window *window,
can_frame *frame): can_frame *frame):
if frame.can_id == 0x280: if frame.can_id == 0x280:
cluster.tacho.value = 0.25 * float(frame.data[2] | (frame.data[3] << 8)) rpm = 0.25 * float(frame.data[2] | (frame.data[3] << 8))
cluster.tacho.value = rpm
cluster.shift_indicator.value = rpm
elif frame.can_id == 0x288: elif frame.can_id == 0x288:
cluster.thermo.value = 0.75 * float(frame.data[1] - 48) cluster.thermo.value = 0.75 * float(frame.data[1] - 48)
elif frame.can_id == 0x320: elif frame.can_id == 0x320: