aboutsummaryrefslogtreecommitdiff
path: root/libraries/Bridge/Process.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/Bridge/Process.cpp')
-rw-r--r--libraries/Bridge/Process.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/libraries/Bridge/Process.cpp b/libraries/Bridge/Process.cpp
index 7265119..59fe2b7 100644
--- a/libraries/Bridge/Process.cpp
+++ b/libraries/Bridge/Process.cpp
@@ -85,11 +85,13 @@ void Process::addParameter(String &param) {
}
void Process::runAsynchronously() {
- handle = bridge.runCommand(*cmdline);
+ uint8_t err;
+ handle = bridge.runCommand(*cmdline, err);
delete cmdline;
cmdline = NULL;
- started = true;
+ if (err==0)
+ started = true;
}
boolean Process::running() {