From 130b1962b3232efd7fe4704284dcd7046e541d08 Mon Sep 17 00:00:00 2001 From: Hugo Jean Ponsin Date: Fri, 1 May 2026 14:36:59 +0200 Subject: [PATCH] added comment --- src/device/ePowerSwitchEquipment.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/device/ePowerSwitchEquipment.cpp b/src/device/ePowerSwitchEquipment.cpp index cd6fc4c..0f3b7d6 100644 --- a/src/device/ePowerSwitchEquipment.cpp +++ b/src/device/ePowerSwitchEquipment.cpp @@ -153,6 +153,10 @@ void ePowerSwitchEquipment::updateOutletNumber() { "Outlet number increasing, creating %d new outlet(s)", epicsOutletNumber - this->numberOfOutlet); + /* + This for loop will only iterate if the condition on top of this + comment is true + */ for (int i = this->numberOfOutlet; i < epicsOutletNumber; i++) { std::string epicsSetRecordName; { @@ -181,7 +185,10 @@ void ePowerSwitchEquipment::updateOutletNumber() { fMfe->Msg(MDEBUG, __FUNCTION__, "Outlet number decreasing, destroying %d outlet(s)", this->numberOfOutlet - epicsOutletNumber); - + /* + This for loop will only iterate if the condition on top of this + comment is true + */ for (int i = epicsOutletNumber; i < this->numberOfOutlet; i++) { std::string requestedVarname;