Skip to content

Commit

Permalink
Feature: Added description for alarm id 152
Browse files Browse the repository at this point in the history
Fixes: #1798
  • Loading branch information
tbnobody committed Mar 1, 2024
1 parent 50abcd1 commit 021d9b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/Hoymiles/src/parser/AlarmLogParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const std::array<const AlarmMessage_t, ALARM_MSG_COUNT> AlarmLogParser::_alarmMe
{ AlarmMessageType_t::ALL, 149, "Grid: Island detected", "Netz: Inselbetrieb festgestellt", "Réseau: Détection d’îlots" },

{ AlarmMessageType_t::ALL, 150, "DCI exceeded", "", "" },
{ AlarmMessageType_t::ALL, 152, "Grid: Phase angle difference between two phases exceeded 5° >10 times", "", "" },
{ AlarmMessageType_t::HMT, 171, "Grid: Abnormal phase difference between phase to phase", "", "" },
{ AlarmMessageType_t::ALL, 181, "Abnormal insulation impedance", "", "" },
{ AlarmMessageType_t::ALL, 182, "Abnormal grounding", "", "" },
Expand Down
4 changes: 2 additions & 2 deletions lib/Hoymiles/src/parser/AlarmLogParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define ALARM_LOG_ENTRY_SIZE 12
#define ALARM_LOG_PAYLOAD_SIZE (ALARM_LOG_ENTRY_COUNT * ALARM_LOG_ENTRY_SIZE + 4)

#define ALARM_MSG_COUNT 130
#define ALARM_MSG_COUNT 131

struct AlarmLogEntry_t {
uint16_t MessageId;
Expand Down Expand Up @@ -62,4 +62,4 @@ class AlarmLogParser : public Parser {
AlarmMessageType_t _messageType = AlarmMessageType_t::ALL;

static const std::array<const AlarmMessage_t, ALARM_MSG_COUNT> _alarmMessages;
};
};

0 comments on commit 021d9b5

Please sign in to comment.