diff --git a/Software/src/inverter/Rs485InverterProtocol.h b/Software/src/inverter/Rs485InverterProtocol.h index 069007f2..e0928543 100644 --- a/Software/src/inverter/Rs485InverterProtocol.h +++ b/Software/src/inverter/Rs485InverterProtocol.h @@ -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