mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 02:09:30 +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);
|
||||||
|
|
|
@ -53,7 +53,7 @@ void __getData() {
|
||||||
void updateData() {
|
void updateData() {
|
||||||
// --- update with fresh data
|
// --- update with fresh data
|
||||||
dataLinkReceive.updateData(0, inverterAllowsContactorClosing);
|
dataLinkReceive.updateData(0, inverterAllowsContactorClosing);
|
||||||
//dataLinkReceive.updateData(1,var2); // For future expansion,
|
//dataLinkReceive.updateData(1,var2); // For future expansion,
|
||||||
//dataLinkReceive.updateData(2,var3); // if inverter needs to send data to battery
|
//dataLinkReceive.updateData(2,var3); // if inverter needs to send data to battery
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ void printSendingValues();
|
||||||
|
|
||||||
void _getData() {
|
void _getData() {
|
||||||
inverterAllowsContactorClosing = dataLinkTransmit.getReceivedData(0);
|
inverterAllowsContactorClosing = dataLinkTransmit.getReceivedData(0);
|
||||||
//var2 = dataLinkTransmit.getReceivedData(1); // For future expansion,
|
//var2 = dataLinkTransmit.getReceivedData(1); // For future expansion,
|
||||||
//var3 = dataLinkTransmit.getReceivedData(2); // if inverter needs to send data to battery
|
//var3 = dataLinkTransmit.getReceivedData(2); // if inverter needs to send data to battery
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue