mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-06 03:50:13 +02:00
Merge pull request #1320 from kyberias/fix-kostal
Fix RS485 inverters by proper registration of a receiver
This commit is contained in:
commit
0c6a3baa2f
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue