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

@ -133,7 +133,7 @@ main(int argc, char **argv)
// init slaves
//
frame->control = MBUS_CONTROL_MASK_SND_NKE | MBUS_CONTROL_MASK_DIR_M2S;
frame->address = 0xFD;
frame->address = MBUS_ADDRESS_NETWORK_LAYER;
if (mbus_send_frame(handle, frame) == -1)
{
@ -145,7 +145,7 @@ main(int argc, char **argv)
(void) mbus_recv_frame(handle, &reply);
frame->control = MBUS_CONTROL_MASK_SND_NKE | MBUS_CONTROL_MASK_DIR_M2S;
frame->address = 0xFF;
frame->address = MBUS_ADDRESS_BROADCAST_NOREPLY;
if (mbus_send_frame(handle, frame) == -1)
{