diff options
author | Christian Pointner <equinox@helsinki.at> | 2010-01-11 19:46:24 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2010-01-11 19:46:24 (GMT) |
commit | 16797549c7788b05583f241e5c788a666debf6d0 (patch) | |
tree | a54a3a9330de65cad9b70e4cb28ce03d90ad2aac | |
parent | f8f458ca79d2f3a840ee87dbed9896670ed9e8e6 (diff) |
fixed return_value bug at serial-client
-rw-r--r-- | serialclient.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/serialclient.c b/serialclient.c index f81c7cb..3cb0b0c 100644 --- a/serialclient.c +++ b/serialclient.c @@ -127,8 +127,10 @@ int main_loop(int serial_fd, int cmd_fd, options_t* opt) if(FD_ISSET(serial_fd, &tmpfds)) return_value = process_data(serial_fd, cmd_fd); - if(FD_ISSET(cmd_fd, &tmpfds)) + if(FD_ISSET(cmd_fd, &tmpfds)) { return_value = process_data(cmd_fd, serial_fd); + if(return_value == 2) return_value = 3; + } } signal_stop(); |