Skip to content

Commit

Permalink
Only MSG_BM_MIRROR_MULTIPLE and MSG_BM_MULTIPLE require loco addresse…
Browse files Browse the repository at this point in the history
…s to be multiples of 8
  • Loading branch information
Eugene Yip committed Jun 20, 2021
1 parent 1e0ef4f commit 70f930d
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/lowlevel/bidib_lowlevel_occupancy.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,6 @@ void bidib_send_bm_mirror_multiple(t_bidib_node_address node_address,

void bidib_send_bm_mirror_occ(t_bidib_node_address node_address,
uint8_t mnum, unsigned int action_id) {
if (mnum % 8 != 0) {
syslog_libbidib(LOG_ERR,
"MSG_BM_MIRROR_OCC called with invalid parameter mnum = %02x",
mnum);
return;
}
uint8_t addr_stack[] = {node_address.top, node_address.sub,
node_address.subsub, 0x00};
uint8_t data[] = {mnum};
Expand All @@ -97,12 +91,6 @@ void bidib_send_bm_mirror_occ(t_bidib_node_address node_address,

void bidib_send_bm_mirror_free(t_bidib_node_address node_address,
uint8_t mnum, unsigned int action_id) {
if (mnum % 8 != 0) {
syslog_libbidib(LOG_ERR,
"MSG_BM_MIRROR_FREE called with invalid parameter mnum = %02x",
mnum);
return;
}
uint8_t addr_stack[] = {node_address.top, node_address.sub,
node_address.subsub, 0x00};
uint8_t data[] = {mnum};
Expand Down

0 comments on commit 70f930d

Please sign in to comment.