From 5011fc2dc07919e050249b7b52470471ee6a7160 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 22 Jan 2026 09:57:47 -0500 Subject: [PATCH] Fix battery voltage reporting in telemetry string for BAT2 only --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index be397028..82d49d29 100644 --- a/main.c +++ b/main.c @@ -1391,7 +1391,7 @@ void get_tlm(void) { if (voltage[map[BAT2]] == 0) snprintf(tlm_str, 30, "BAT %.2f %.1f ", voltage[map[BAT]], current[map[BAT]]); else - snprintf(tlm_str, 30, "BAT %.2f %.1f ", voltage[map[BAT]], current[map[BAT]] + current[map[BAT2]]); + snprintf(tlm_str, 30, "BAT %.2f %.1f ", voltage[map[BAT2]], current[map[BAT]] + current[map[BAT2]]); if (c2cStatus != DISABLED) strcat(tlm_str,"C ");