Update main.c missing )

pi-sensors
Alan Johnston 3 months ago committed by GitHub
parent 37ba74ec13
commit f8dea58560
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1021,7 +1021,7 @@ int main(int argc, char * argv[]) {
else { else {
printf("Write simulted voltage and current to telem_string.txt\n"); printf("Write simulted voltage and current to telem_string.txt\n");
// fprintf(fp, "\n"); // don't show voltage and current if it isn't a sensor value // fprintf(fp, "\n"); // don't show voltage and current if it isn't a sensor value
fprintf(fp, "BAT %.2fV %.0fmA", voltage[map[BAT]], current[map[BAT]]; // display simulated voltage and current fprintf(fp, "BAT %.2fV %.0fmA", voltage[map[BAT]], current[map[BAT]]); // display simulated voltage and current
if (c2cStatus != DISABLED) if (c2cStatus != DISABLED)
fprintf(fp," C"); fprintf(fp," C");
if (sim_mode || (failureMode != FAIL_NONE)) if (sim_mode || (failureMode != FAIL_NONE))

Loading…
Cancel
Save

Powered by TurnKey Linux.