We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ac5a5d commit c32552dCopy full SHA for c32552d
hardware/arduino/zunoG2/cores/ZWSupport/ZWCCAssociation.cpp
@@ -408,7 +408,13 @@ static int _association_gpr_info_command_report(ZwAssociationGroupCommandListGet
408
command[1] = DEVICE_RESET_LOCALLY_NOTIFICATION;
409
command[2] = COMMAND_CLASS_INDICATOR;
410
command[3] = INDICATOR_REPORT_V4;
411
- command = command + 4;
+ i = 0x4;
412
+ #if defined(WITH_CC_BATTERY)
413
+ command[i + 0x0] = COMMAND_CLASS_BATTERY;
414
+ command[i + 0x1] = BATTERY_REPORT;
415
+ i = i + 0x2;
416
+ #endif
417
+ command = command + i;
418
command_save = command;
419
i_all = 1;
420
max_all = ZUNO_CFG_CHANNEL_COUNT;
0 commit comments