blob: 2e25695f0d0f0fdfc3746c289ad1cacee588c652 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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
|