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

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