Merge remote-tracking branch 'upstream/master'

This commit is contained in:
jakubovsky
2012-07-06 11:14:47 +02:00
5 changed files with 37 additions and 10 deletions

View File

@ -136,7 +136,7 @@ main(int argc, char **argv)
// instead of the send and recv, use this sendrecv function that
// takes care of the possibility of multi-telegram replies (limit = 16 frames)
if (mbus_sendrecv_request(handle, address, &reply, 16) == -1)
if (mbus_sendrecv_request(handle, address, &reply, 16) != 0)
{
fprintf(stderr, "Failed to send/receive M-Bus request.\n");
return 1;