Update main.c fix V and mA

beta-v1.3.1-vhf-cleanup
Alan Johnston 2 years ago committed by GitHub
parent 3c03fa8008
commit bbda07ef39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1030,13 +1030,16 @@ void get_tlm(void) {
channel, upper_digit(tlm[channel][4]), lower_digit(tlm[channel][4]));
// printf("%s",tlm_str);
if (mode == AFSK)
sprintf(tlm_str, "%4.2f%V 5.1%fmA ", voltage[map[BAT]], current[map[BAT]]);
strcat(str, tlm_str);
if (mode != AFSK)
strcat(str, tlm_str);
}
if (mode == AFSK) {
sprintf(tlm_str, "%4.2f%V 5.1%fmA ", batteryVoltage, batteryVoltage);
strcat(str, tlm_str);
}
// read payload sensor if available
/*
char sensor_payload[500];

Loading…
Cancel
Save

Powered by TurnKey Linux.