From 274e90de220c4a89124ee820b442a54e4ebbbaec Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 24 Jan 2026 09:09:13 -0500 Subject: [PATCH] Update main.c SSTV if I2C fail show zero batt voltage --- main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index cd1c75d2..b248202f 100644 --- a/main.c +++ b/main.c @@ -1140,7 +1140,10 @@ int main(int argc, char * argv[]) { else fprintf(fp, "BAT %4.2fV %4.0fmA C\n", batteryVoltage, batteryCurrent); // show command and control is on */ - fprintf(fp, "BAT %.2fV %.0fmA", batteryVoltage, batteryCurrent); + if (failureMode == FAIL_I2C1) + fprintf(fp, "BAT %.2fV %.0fmA", batteryVoltage, batteryCurrent); + else + fprintf(fp, "BAT %.2fV %.0fmA", 0.0, 0.0); if (c2cStatus != DISABLED) fprintf(fp," C"); if (sim_mode || (failureMode != FAIL_NONE))