replace magic number with define

This commit is contained in:
Stefan Wahren
2012-12-20 20:42:10 +01:00
parent b3a3dfec0b
commit 404e245af5
9 changed files with 11 additions and 11 deletions

View File

@ -3956,8 +3956,8 @@ mbus_frame_select_secondary_pack(mbus_frame *frame, char *address)
}
frame->control = MBUS_CONTROL_MASK_SND_UD | MBUS_CONTROL_MASK_DIR_M2S | MBUS_CONTROL_MASK_FCB;
frame->address = 253; // for addressing secondary slaves
frame->control_information = 0x52; // mode 1
frame->address = MBUS_ADDRESS_NETWORK_LAYER; // for addressing secondary slaves
frame->control_information = MBUS_CONTROL_INFO_SELECT_SLAVE; // mode 1
frame->data_size = 8;