Handle the case to turn off the Chassis Identify LED

Resolves openbmc/openbmc#3327

Change-Id: Ib0cbfccdd91b6cdd2267a48b312d2736a4ce8fbc
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
diff --git a/chassishandler.cpp b/chassishandler.cpp
index 04bbffe..2ad9948 100644
--- a/chassishandler.cpp
+++ b/chassishandler.cpp
@@ -1190,6 +1190,7 @@
                 DEFAULT_IDENTIFY_TIME_OUT;
     bool forceIdentify = (*data_len == chassisIdentifyReqLength) ?
             (static_cast<uint8_t*>(request))[forceIdentifyPos] & 0x01 : false;
+
     if (identifyInterval || forceIdentify)
     {
         // stop the timer if already started, for force identify we should
@@ -1214,6 +1215,11 @@
                         std::chrono::seconds(identifyInterval));
         identifyTimer->startTimer(time);
     }
+    else if (!identifyInterval)
+    {
+        identifyTimer->setTimer(SD_EVENT_OFF);
+        enclosureIdentifyLedOff();
+    }
     return IPMI_CC_OK;
 }