mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 10:19:29 +02:00
Pre-commit fix
This commit is contained in:
parent
bc6beaf1ab
commit
78c0ac7009
3 changed files with 6 additions and 6 deletions
|
@ -242,10 +242,10 @@ void init_modbus() {
|
||||||
handle_static_data_modbus_byd();
|
handle_static_data_modbus_byd();
|
||||||
#endif
|
#endif
|
||||||
#if defined(BYD_MODBUS) || defined(LUNA2000_MODBUS)
|
#if defined(BYD_MODBUS) || defined(LUNA2000_MODBUS)
|
||||||
#if defined(SERIAL_LINK_RECEIVER) || defined(SERIAL_LINK_TRANSMITTER)
|
#if defined(SERIAL_LINK_RECEIVER) || defined(SERIAL_LINK_TRANSMITTER)
|
||||||
// Check that Dual LilyGo via RS485 option isn't enabled, this collides with Modbus!
|
// Check that Dual LilyGo via RS485 option isn't enabled, this collides with Modbus!
|
||||||
#error MODBUS CANNOT BE USED IN DOUBLE LILYGO SETUPS! CHECK USER SETTINGS!
|
#error MODBUS CANNOT BE USED IN DOUBLE LILYGO SETUPS! CHECK USER SETTINGS!
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Init Serial2 connected to the RTU Modbus
|
// Init Serial2 connected to the RTU Modbus
|
||||||
RTUutils::prepareHardwareSerial(Serial2);
|
RTUutils::prepareHardwareSerial(Serial2);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue