no python sensor read

pull/116/head
alanbjohnston 5 years ago committed by GitHub
parent 162ecb1b33
commit 4ec37242cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1050,7 +1050,7 @@ void get_tlm_fox() {
// delay for sample period // delay for sample period
digitalWrite(txLed, txLedOn); digitalWrite(txLed, txLedOn);
#ifdef DEBUG_LOGGING #ifdef DEBUG_LOGGING
printf("Tx LED On\n"); // printf("Tx LED On\n");
#endif #endif
/* /*
while ((millis() - sampleTime) < (unsigned int)samplePeriod) while ((millis() - sampleTime) < (unsigned int)samplePeriod)
@ -1058,7 +1058,7 @@ void get_tlm_fox() {
*/ */
digitalWrite(txLed, txLedOff); digitalWrite(txLed, txLedOff);
#ifdef DEBUG_LOGGING #ifdef DEBUG_LOGGING
printf("Tx LED Off\n"); // printf("Tx LED Off\n");
#endif #endif
printf("Sample period: %d\n", millis() - (unsigned int)sampleTime); printf("Sample period: %d\n", millis() - (unsigned int)sampleTime);
@ -1151,12 +1151,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.