OpenDTU-old/lib/Hoymiles/src/inverters/HM_4CH.cpp
Thomas Basler f42696d14c Fix change of inverter serial
Because of the inverter type depends on the serial number it's a must to remove and add the inverter of the serial was changed. setSerial doesn't make sense anymore. Move the serial to the constructor
2022-06-22 21:32:37 +02:00

24 lines
460 B
C++

#include "HM_4CH.h"
HM_4CH::HM_4CH(uint64_t serial)
: InverterAbstract(serial) {};
bool HM_4CH::isValidSerial(uint64_t serial)
{
return serial >= 0x116100000000 && serial <= 0x116199999999;
}
String HM_4CH::typeName()
{
return String(F("HM-1200, HM-1500"));
}
const byteAssign_t* HM_4CH::getByteAssignment()
{
return byteAssignment;
}
const uint8_t HM_4CH::getAssignmentCount()
{
return sizeof(byteAssignment) / sizeof(byteAssign_t);
}