From 54037c89e50e8fe688ef3ff75ffb6fafec2cb1e5 Mon Sep 17 00:00:00 2001
From: Philipp Jungkamp
Date: Mon, 23 May 2022 20:54:28 +0000
Subject: [PATCH] use correct constant for matching the qualifier of
interrogation
the cause of transmission and qualifier of interrogation share the numeric meanings,
e.g the QOI for "station" equals the COT for "interrogated by station".
Thus the previous code was not wrong, but still confusing to the reader.
---
lib/nodes/iec60870.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/nodes/iec60870.cpp b/lib/nodes/iec60870.cpp
index b73049d07..c9bc67631 100644
--- a/lib/nodes/iec60870.cpp
+++ b/lib/nodes/iec60870.cpp
@@ -417,7 +417,7 @@ bool SlaveNode::onInterrogation(IMasterConnection connection, CS101_ASDU asdu, u
switch (qoi) {
// send initial values for all signals
- case CS101_COT_INTERROGATED_BY_STATION: {
+ case IEC60870_QOI_STATION: {
IMasterConnection_sendACT_CON(connection, asdu, false);
this->logger->info("received general interrogation");