reduce sleep time

pull/78/head
alanbjohnston 5 years ago committed by GitHub
parent 630c6f2a0f
commit 2507048f8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1085,7 +1085,7 @@ void get_tlm_fox() {
while ((millis() - sampleTime) < (unsigned int)samplePeriod)
sleep((unsigned int)sleepTime);
*/
sleep(2.8); // No sleep at all!
sleep(2.3); // No sleep at all!
digitalWrite(txLed, txLedOff);
@ -1184,13 +1184,13 @@ else {
int count1;
char * token;
// char cmdbuffer[1000];
/*
/**/
// FILE * file = popen(pythonStr, "r");
fputc('\n', file1);
fgets(cmdbuffer, 1000, file1);
printf("Python read Result: %s\n", cmdbuffer);
// printf("Python read Result: %s\n", cmdbuffer);
// pclose(file);
*/
/**/
const char space[2] = " ";
token = strtok(cmdbuffer, space);

Loading…
Cancel
Save

Powered by TurnKey Linux.