Skip to content

Commit

Permalink
Blink instead of tunrning on LED
Browse files Browse the repository at this point in the history
  • Loading branch information
nurikk committed Feb 12, 2021
1 parent 0713ed8 commit ace235d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Application/zcl_genericapp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1230,13 +1230,13 @@ static void zclGenericApp_processCounter(Button_Handle _btn) {

if (counterEvents[i] & (PRESS_EVENTS)) {
LED_setOn(gRedLedHandle, 80);
LED_startBlinking(gGreenLedHandle, 500, 2);
uint16 alarmStatus = 0;
zclSS_IAS_Send_ZoneStatusChangeNotificationCmd(zclGenericApp_ChannelsSimpleDesc[i].EndPoint, &inderect_DstAddr, alarmStatus, 0, 0, 0, true, zcl_getFrameCounter());
counterEvents[i] &= ~(PRESS_EVENTS);
}

if (counterEvents[i] & Button_EV_RELEASED) {

LED_setOff(gRedLedHandle);
counterEvents[i] &= ~(Button_EV_RELEASED);
uint16 alarmStatus = 0;
Expand Down

0 comments on commit ace235d

Please sign in to comment.