sleep 1.5 and python telem

pull/78/head
alanbjohnston 5 years ago committed by GitHub
parent 42f9b0b82f
commit 6c1b63be40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1058,7 +1058,7 @@ void get_tlm_fox() {
while ((millis() - sampleTime) < (unsigned int)samplePeriod) while ((millis() - sampleTime) < (unsigned int)samplePeriod)
sleep((unsigned int)sleepTime); sleep((unsigned int)sleepTime);
*/ */
sleep(2.5); // No sleep at all! sleep(1.5); // No sleep at all!
digitalWrite(txLed, txLedOff); digitalWrite(txLed, txLedOff);
@ -1157,12 +1157,12 @@ else {
int count1; int count1;
char * token; char * token;
char cmdbuffer[1000]; char cmdbuffer[1000];
/* /**/
FILE * file = popen(pythonStr, "r"); FILE * file = popen(pythonStr, "r");
fgets(cmdbuffer, 1000, file); fgets(cmdbuffer, 1000, file);
// printf("result: %s\n", cmdbuffer); // printf("result: %s\n", cmdbuffer);
pclose(file); pclose(file);
*/ **/
const char space[2] = " "; const char space[2] = " ";
token = strtok(cmdbuffer, space); token = strtok(cmdbuffer, space);

Loading…
Cancel
Save

Powered by TurnKey Linux.