Fix Frame Count Bit handling

Extend mbus_send_request_frame() to set FCB
Set FCB in case of primary adressing
This commit is contained in:
Stefan Wahren
2015-06-27 12:55:12 +02:00
parent 716d712314
commit 61f6942448
6 changed files with 21 additions and 12 deletions

View File

@ -87,7 +87,7 @@ main(int argc, char **argv)
if (mbus_frame_type(&reply) == MBUS_FRAME_TYPE_ACK)
{
if (mbus_send_request_frame(handle, MBUS_ADDRESS_NETWORK_LAYER) == -1)
if (mbus_send_request_frame(handle, MBUS_ADDRESS_NETWORK_LAYER, 0) == -1)
{
fprintf(stderr,"Failed to send request to selected secondary device: %s\n", mbus_error_str());
return 1;