From 35d8c96ad05921bd365c84b018cdccdbb64522ef Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 21 Jan 2026 16:18:56 -0500 Subject: [PATCH] Fix conditional statement for STEMBoardFailure in sim_mode --- main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index f0b7c74c..2e7948ba 100644 --- a/main.c +++ b/main.c @@ -1677,7 +1677,9 @@ void get_tlm_fox() { BAT2Voltage = (int)(voltage[map[BAT2]] * 100); BAT2Current = (int)(current[map[BAT2]] + 0.5) + 2048; - if (payload == ON) STEMBoardFailure = 0; +// if (payload == ON) STEMBoardFailure = 0; + if (payload == ON) || (sim_mode && (failureMode != FAIL_PAYLOAD)) + STEMBoardFailure = 0; // read payload sensor if available