Skip to content

Commit

Permalink
fix test MultiBroadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
amatilda committed Oct 15, 2024
1 parent 624bc01 commit 4b230af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hardware/arduino/zunoG2/cores/ZWSupport/ZWSupport.c
Original file line number Diff line number Diff line change
Expand Up @@ -481,9 +481,9 @@ static uint8_t _multiinstance(const ZUNOCommandCmd_t *cmd, int *out, ZUNOCommand
(void)frame_report;
}

static size_t _testMultiBroadcast(size_t zw_rx_opts, size_t cmdClass, size_t cmd) {
static size_t _isBlockMultiBroadcast(size_t zw_rx_opts, size_t cmdClass, size_t cmd) {
if ((zw_rx_opts & RECEIVE_STATUS_TYPE_MULTI) == 0)//test multicast
return (true);
return (false);
switch (cmdClass) {
#ifdef WITH_CC_BASIC
case COMMAND_CLASS_BASIC:
Expand Down Expand Up @@ -1032,7 +1032,7 @@ int zuno_CommandHandler(ZUNOCommandCmd_t *cmd) {
supervision = true;
else
supervision = false;
if (_testMultiBroadcast(cmd->zw_rx_opts, ZW_CMD_CLASS, ZW_CMD) == false)
if (_isBlockMultiBroadcast(cmd->zw_rx_opts, ZW_CMD_CLASS, ZW_CMD) == true)
return __zuno_CommandHandler_Out(ZUNO_COMMAND_BLOCKED);
options = ZUNO_COMMAND_HANDLER_OPTIONS(cmd->src_node, multi, supervision, ZW_CMD_CLASS);
// Check if command fits to any existing channel
Expand Down

0 comments on commit 4b230af

Please sign in to comment.