From 3ce408d3ce159ba459674b787cb61da605f1d590 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 30 Aug 2024 16:09:06 -0400 Subject: [PATCH] Update main.c sensor min max fix --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index a7d377b5..a1d41a87 100644 --- a/main.c +++ b/main.c @@ -1427,7 +1427,7 @@ void get_tlm_fox() { encodeA(b_max, 39 + head_offset, (int)(other_max[IHU_TEMP] * 10 + 0.5)); encodeB(b_max, 31 + head_offset, ((int)(other_max[SPIN] * 10)) + 2048); - if (sensor_min[0] != 1000.0) // make sure values are valid + if (sensor_min[TEMP] != 1000.0) // make sure values are valid { encodeB(b_max, 4 + head_offset, (int)(sensor_max[ACCEL_X] * 100 + 0.5) + 2048); // Xaccel encodeA(b_max, 6 + head_offset, (int)(sensor_max[ACCEL_Y] * 100 + 0.5) + 2048); // Yaccel