From eda71d1d0c963a5ae74e9d79cd4b018ce74cae76 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Tue, 9 Jan 2024 11:07:57 -0500 Subject: [PATCH] Be sure to feed values to shift indicator --- py/hexagram/app.pyx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/py/hexagram/app.pyx b/py/hexagram/app.pyx index 9b60c63..bc9c3c6 100755 --- a/py/hexagram/app.pyx +++ b/py/hexagram/app.pyx @@ -41,7 +41,10 @@ cdef cluster_update(cluster: Cluster, hexagram_window *window, can_frame *frame): 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: cluster.thermo.value = 0.75 * float(frame.data[1] - 48) elif frame.can_id == 0x320: