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

@ -113,7 +113,7 @@ main(int argc, char **argv)
}
// else MBUS_PROBE_SINGLE
if (mbus_send_request_frame(handle, 253) == -1)
if (mbus_send_request_frame(handle, MBUS_ADDRESS_NETWORK_LAYER) == -1)
{
fprintf(stderr, "Failed to send M-Bus request frame.\n");
return 1;