mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 02:39:57 +02:00
Register RS485 inverter as a receiver
This commit is contained in:
parent
2de724e1d2
commit
34a13bdf2a
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"; }
|
||||
InverterInterfaceType interface_type() { return InverterInterfaceType::Rs485; }
|
||||
virtual int baud_rate() = 0;
|
||||
|
||||
Rs485InverterProtocol() { register_receiver(this); }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue