Update main.c

pull/54/head
alanbjohnston 5 years ago committed by GitHub
parent 853b2bcec9
commit e655b22009
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1053,10 +1053,10 @@ if (firstTime != ON)
int count;
char *token;
// char cmdbuffer[1000];
char cmdbuffer[1000];
while (1) {
file = popen("python3 /home/pi/CubeSatSim/python/voltcurrent.py 1 11", "r");
FILE *file = popen("python3 /home/pi/CubeSatSim/python/voltcurrent.py 1 11", "r");
fgets(cmdbuffer, 1000, file);
// printf("result: %s\n", cmdbuffer);
pclose(file);

Loading…
Cancel
Save

Powered by TurnKey Linux.