Fixed code to disable outputs when runtime quits

This commit is contained in:
Thiago Alves 2018-06-22 12:35:07 -05:00 committed by GitHub
parent 6d52302c1d
commit e6b31d62c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -233,6 +233,8 @@ int main(int argc,char **argv)
pthread_join(interactive_thread, NULL);
printf("Disabling outputs\n");
disableOutputs();
updateCustomOut();
updateBuffersOut();
printf("Shutting down OpenPLC Runtime...\n");
exit(0);
}