Fix battery voltage reporting in telemetry string for BAT2 only

master-fsk-cw
Alan Johnston 2 weeks ago committed by GitHub
parent c74541ede0
commit 5011fc2dc0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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 ");

Loading…
Cancel
Save

Powered by TurnKey Linux.