From ace235d34d3945813678349e8f71c4d4fe1469a9 Mon Sep 17 00:00:00 2001 From: nur Date: Fri, 12 Feb 2021 10:56:49 +0800 Subject: [PATCH] Blink instead of tunrning on LED --- Application/zcl_genericapp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/zcl_genericapp.c b/Application/zcl_genericapp.c index a2e9d91..e00d7de 100644 --- a/Application/zcl_genericapp.c +++ b/Application/zcl_genericapp.c @@ -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;