Pre-commit fix

This commit is contained in:
Daniel 2023-12-20 23:50:59 +02:00
parent bc6beaf1ab
commit 78c0ac7009
3 changed files with 6 additions and 6 deletions

View file

@ -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);

View file

@ -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
} }

View file

@ -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
} }