changed printf and loop time in sec

pull/107/head
alanbjohnston 5 years ago committed by GitHub
parent 8b3b9bc954
commit db0471619e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -637,7 +637,7 @@ int main(int argc, char * argv[]) {
#endif #endif
fclose(uptime_file); fclose(uptime_file);
printf("++++ Loop time: %d +++++\n", millis() - loopTime); printf("\n++++ Loop time: %5.3f sec +++++\n", (millis() - loopTime)/1000.0);
loopTime = millis(); loopTime = millis();
if (sim_mode) { // simulated telemetry if (sim_mode) { // simulated telemetry
@ -875,7 +875,7 @@ int main(int argc, char * argv[]) {
} else if ((mode == FSK) || (mode == BPSK)) {// FSK or BPSK } else if ((mode == FSK) || (mode == BPSK)) {// FSK or BPSK
get_tlm_fox(); get_tlm_fox();
} else { // SSTV } else { // SSTV
fprintf(stderr, "Sleeping"); fprintf(stderr, "Sleeping\n");
sleep(100); sleep(100);
} }

Loading…
Cancel
Save

Powered by TurnKey Linux.