Update main.c only do BAT if HAB

pull/279/head
Alan Johnston 2 years ago committed by GitHub
parent 1bf294e618
commit ea44f58851
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1031,16 +1031,18 @@ void get_tlm(void) {
channel, upper_digit(tlm[channel][4]), lower_digit(tlm[channel][4]));
// printf("%s",tlm_str);
if (mode != AFSK)
#ifdef HAB
if (mode != AFSK)
#endif
strcat(str, tlm_str);
}
#ifdef HAB
if (mode == AFSK) {
sprintf(tlm_str, "BAT %4.2f %5.1f ", batteryVoltage, batteryCurrent);
strcat(str, tlm_str);
}
#endif
// read payload sensor if available
/*
char sensor_payload[500];

Loading…
Cancel
Save

Powered by TurnKey Linux.