Merge pull request #1320 from kyberias/fix-kostal

Fix RS485 inverters by proper registration of a receiver
This commit is contained in:
Jaakko Haakana 2025-07-18 17:53:28 +03:00 committed by GitHub
commit 0c6a3baa2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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