mbus_connect() and mbus_disconnect() return 0 on success and -1 otherwise

This commit is contained in:
jakubovsky
2012-07-09 12:33:32 +02:00
parent 5f9052b284
commit b95f29fcc8
12 changed files with 21 additions and 21 deletions

View File

@ -76,7 +76,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;