Skip to content

Commit a00cbfe

Browse files
Fix Command Processing: Check Active and Running
1 parent 0eb526d commit a00cbfe

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## upcoming (v0.6.1 or v0.7.0)
22

33
* Fix #52: Die Diagnose-Kommandos haben auch beim Aufruf von Konsole aufs KO geschrieben
4+
* Fix #51: Das Kommando `dfaNN` lieferte keine Information ob der Kanal aktiv ist und läuft
45

56

67
# 2025-07-18 v0.6.0

src/DfaChannel.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,8 +678,17 @@ void DfaChannel::restore()
678678
bool DfaChannel::processCommandDfa(bool diagnoseKo)
679679
{
680680
logDebugP("status and remaining delay");
681+
682+
if (!_channelActive)
683+
{
684+
logInfoP("NOT_ACTIVE");
685+
if (diagnoseKo)
686+
openknx.console.writeDiagenoseKo("NOT_ACTIVE");
687+
return true;
688+
}
689+
681690
const uint8_t state = _state + 1;
682-
const char mode = '<';
691+
const char mode = _running ? '<' : ']';
683692
if (state > 99)
684693
{
685694
// exclude states with > 2 characters; should never happen

0 commit comments

Comments
 (0)