summaryrefslogtreecommitdiff
path: root/meta-ibs/meta-cp2-5422/recipes-ibs/ipmi/intel-ipmi-oem/0006-On-off-the-blinking-ID-LED-by-the-ID-button.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-ibs/meta-cp2-5422/recipes-ibs/ipmi/intel-ipmi-oem/0006-On-off-the-blinking-ID-LED-by-the-ID-button.patch')
-rw-r--r--meta-ibs/meta-cp2-5422/recipes-ibs/ipmi/intel-ipmi-oem/0006-On-off-the-blinking-ID-LED-by-the-ID-button.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/meta-ibs/meta-cp2-5422/recipes-ibs/ipmi/intel-ipmi-oem/0006-On-off-the-blinking-ID-LED-by-the-ID-button.patch b/meta-ibs/meta-cp2-5422/recipes-ibs/ipmi/intel-ipmi-oem/0006-On-off-the-blinking-ID-LED-by-the-ID-button.patch
new file mode 100644
index 0000000000..2e25695f0d
--- /dev/null
+++ b/meta-ibs/meta-cp2-5422/recipes-ibs/ipmi/intel-ipmi-oem/0006-On-off-the-blinking-ID-LED-by-the-ID-button.patch
@@ -0,0 +1,41 @@
+From 3c236acd2e11048fd30af30e5126aa14c5313672 Mon Sep 17 00:00:00 2001
+From: Nikita Kosenkov <NKosenkov@IBS.RU>
+Date: Tue, 11 Oct 2022 17:16:49 +0300
+Subject: [PATCH] On/off the blinking ID LED by the ID button
+
+---
+ src/chassiscommands.cpp | 8 +++++---
+ 1 file changed, 5 insertions(+), 3 deletions(-)
+
+diff --git a/src/chassiscommands.cpp b/src/chassiscommands.cpp
+index a6df1ac..6de6dda 100644
+--- a/src/chassiscommands.cpp
++++ b/src/chassiscommands.cpp
+@@ -29,6 +29,8 @@
+ #include <stdexcept>
+ #include <string_view>
+
++#include <iostream>
++
+ using namespace phosphor::logging;
+
+ namespace ipmi::chassis
+@@ -162,12 +164,12 @@ void idButtonPropChanged(sdbusplus::message::message& msg)
+ }
+ else
+ {
+- // toggle the IED on/off
+- if (!getIDState(ledIDOnObj, asserted))
++ // toggle the LED blink/off
++ if (!getIDState(ledIDBlinkObj, asserted))
+ {
+ return;
+ }
+- enclosureIdentifyLed(ledIDOnObj, !asserted);
++ enclosureIdentifyLed(ledIDBlinkObj, !asserted);
+ }
+ }
+ }
+--
+2.35.1
+