mbus_connect() and mbus_disconnect() return 0 on success and -1 otherwise
This commit is contained in:
@ -59,7 +59,7 @@ main(int argc, char **argv)
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (!mbus_connect(handle))
|
||||
if (mbus_connect(handle) == -1)
|
||||
{
|
||||
printf("Failed to setup connection to M-bus gateway\n");
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user