Register RS485 inverter as a receiver

This commit is contained in:
Jaakko Haakana 2025-07-18 10:24:10 +03:00
parent 2de724e1d2
commit 34a13bdf2a

View file

@ -10,6 +10,8 @@ class Rs485InverterProtocol : public InverterProtocol, Rs485Receiver {
virtual const char* interface_name() { return "RS485"; }
InverterInterfaceType interface_type() { return InverterInterfaceType::Rs485; }
virtual int baud_rate() = 0;
Rs485InverterProtocol() { register_receiver(this); }
};
#endif