only open python if not sim mode

pull/104/head
alanbjohnston 5 years ago committed by GitHub
parent 3bd32d2388
commit b2fcbef084
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -618,6 +618,8 @@ int main(int argc, char * argv[]) {
get_tlm_fox(); get_tlm_fox();
firstTime = 1; firstTime = 1;
if (!sim_mode)
{
strcpy(pythonStr, pythonCmd); strcpy(pythonStr, pythonCmd);
strcat(pythonStr, busStr); strcat(pythonStr, busStr);
strcat(pythonConfigStr, pythonStr); strcat(pythonConfigStr, pythonStr);
@ -629,6 +631,7 @@ int main(int argc, char * argv[]) {
fgets(cmdbuffer, 1000, file1); fgets(cmdbuffer, 1000, file1);
fprintf(stderr, "pythonStr result: %s\n", cmdbuffer); fprintf(stderr, "pythonStr result: %s\n", cmdbuffer);
}
long int loopTime; long int loopTime;
loopTime = millis(); loopTime = millis();

Loading…
Cancel
Save

Powered by TurnKey Linux.