resolved conflict

This commit is contained in:
Robert Johansson 2012-04-13 11:00:10 +09:00
parent bd3c270621
commit 748db590d7
2 changed files with 1 additions and 20 deletions

View File

@ -95,28 +95,9 @@ main(int argc, char **argv)
address = atoi(addr_str);
}
/*
if (mbus_send_request_frame(handle, address) == -1)
{
fprintf(stderr, "Failed to send M-Bus request frame.\n");
return 1;
}
if (mbus_recv_frame(handle, &reply) == -1)
{
fprintf(stderr, "Failed to receive M-Bus response frame.\n");
return 1;
}
*/
// instead of the send and recv, use this sendrecv function that
<<<<<<< HEAD
// takes care of the possibility of multi-telegram replies
if (mbus_sendrecv_request(handle, address, &reply) == -1)
=======
// takes care of the possibility of multi-telegram replies (limit = 16 frames)
if (mbus_sendrecv_request(handle, address, &reply, 16) == -1)
>>>>>>> 58c2bbe2338cc1c5e30fa4cb1d52f5cb56ae9801
{
fprintf(stderr, "Failed to send/receive M-Bus request.\n");
return 1;

View File

@ -171,7 +171,7 @@ typedef struct _mbus_data_variable {
mbus_data_variable_header header;
mbus_data_record *record; // XXX: this max num must be dynamic
mbus_data_record *record;
size_t nrecords;
u_char *data;