1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

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.
This commit is contained in:
Philipp Jungkamp 2022-05-23 20:54:28 +00:00 committed by Philipp Jungkamp
parent a019465109
commit 54037c89e5

View file

@ -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");