Add variable for max channel count (to extend serveral arrays)

This commit is contained in:
Thomas Basler 2023-03-07 20:30:00 +01:00
parent 90c689a41a
commit a585ffe199

View File

@ -60,7 +60,7 @@ enum ChannelNum_t {
CH1,
CH2,
CH3,
CH4
CH_CNT
};
enum ChannelType_t {
@ -122,7 +122,7 @@ public:
private:
uint8_t _payloadStatistic[STATISTIC_PACKET_SIZE] = {};
uint8_t _statisticLength = 0;
uint16_t _stringMaxPower[CH4];
uint16_t _stringMaxPower[CH_CNT];
const std::list<byteAssign_t>* _byteAssignment;
std::list<fieldSettings_t> _fieldSettings;