From 57f7d95f14e64206d871fdf249928d5d23521742 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 9 Jun 2025 22:43:02 -0400 Subject: [PATCH] Update main.c fix BAT2 only APRS zero voltage and current --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 7ef1b269..2f13599c 100644 --- a/main.c +++ b/main.c @@ -1131,9 +1131,9 @@ void get_tlm(void) { } else { // APRS if (c2cStatus == 0) - sprintf(tlm_str, "BAT %4.2f %5.1f ", voltage[map[BAT]] , current[map[BAT]] ); + sprintf(tlm_str, "BAT %4.2f %5.1f ", batteryVoltage, batteryCurrent); else - sprintf(tlm_str, "BAT %4.2f %5.1f C ", voltage[map[BAT]] , current[map[BAT]] ); + sprintf(tlm_str, "BAT %4.2f %5.1f C ", batteryVoltage, batteryCurrent); strcat(str, tlm_str); }