aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/modemctrl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/modemctrl.c b/tools/modemctrl.c
index 168c95e..dc7eaaa 100644
--- a/tools/modemctrl.c
+++ b/tools/modemctrl.c
@@ -396,7 +396,7 @@ int modem_read_loop(struct ipc_client *client)
{
rc = ipc_client_recv(client, &resp);
- if(rc > 0) {
+ if(rc < 0) {
printf("[E] Can't RECV from modem: please run this again\n");
break;
}
@@ -533,7 +533,7 @@ int main(int argc, char *argv[])
} else if(strncmp(argv[optind], "start", 5) == 0) {
printf("[0] Starting modem on FMT client\n");
rc = modem_start(client_fmt);
- if(rc > 0) {
+ if(rc < 0) {
printf("[E] Something went wrong\n");
modem_stop(client_fmt);
return 1;