Optimize AlarmLogParser to save memory
This commit is contained in:
parent
00bc631e87
commit
0737cb0cb3
@ -31,9 +31,9 @@ enum class AlarmMessageLocale_t {
|
|||||||
typedef struct {
|
typedef struct {
|
||||||
AlarmMessageType_t InverterType;
|
AlarmMessageType_t InverterType;
|
||||||
uint16_t MessageId;
|
uint16_t MessageId;
|
||||||
char Message_en[62];
|
const char* Message_en;
|
||||||
char Message_de[63];
|
const char* Message_de;
|
||||||
char Message_fr[64];
|
const char* Message_fr;
|
||||||
} AlarmMessage_t;
|
} AlarmMessage_t;
|
||||||
|
|
||||||
class AlarmLogParser : public Parser {
|
class AlarmLogParser : public Parser {
|
||||||
@ -52,7 +52,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
static int getTimezoneOffset();
|
static int getTimezoneOffset();
|
||||||
String getLocaleMessage(const AlarmMessage_t *msg, AlarmMessageLocale_t locale);
|
String getLocaleMessage(const AlarmMessage_t* msg, AlarmMessageLocale_t locale);
|
||||||
|
|
||||||
uint8_t _payloadAlarmLog[ALARM_LOG_PAYLOAD_SIZE];
|
uint8_t _payloadAlarmLog[ALARM_LOG_PAYLOAD_SIZE];
|
||||||
uint8_t _alarmLogLength = 0;
|
uint8_t _alarmLogLength = 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user