Skip to content

Commit

Permalink
log fronius null frames
Browse files Browse the repository at this point in the history
To aid debugging, log the erroneous null frames.

victronenergy/venus#549
  • Loading branch information
izak committed Sep 7, 2022
1 parent 8313bf0 commit e584a89
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion software/src/fronius_inverter.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <QsLog.h>
#include "ve_service.h"
#include "fronius_inverter.h"

Expand Down Expand Up @@ -29,6 +30,9 @@ bool FroniusInverter::validateSunspecMonitorFrame(QVector<quint16> frame)
// that we simply filter these values.
if (deviceInfo().retrievalMode == ProtocolSunSpecIntSf &&
frame.mid(2, 37) == FroniusNullFrame)
return false;
{
QLOG_INFO() << "Fronius Null-frame detected" << frame;
return false;
}
return true;
}

0 comments on commit e584a89

Please sign in to comment.