From 3cb6a35ddef2754418560062131976bb85d2a914 Mon Sep 17 00:00:00 2001 From: travis-farmer Date: Mon, 2 Dec 2024 14:15:06 -0500 Subject: [PATCH] IO_Modbus: removed board limits. too annoying. --- IO_Modbus.cpp | 3 +-- IO_Modbus.h | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/IO_Modbus.cpp b/IO_Modbus.cpp index 1da5223..f7b0b22 100644 --- a/IO_Modbus.cpp +++ b/IO_Modbus.cpp @@ -17,7 +17,7 @@ * You should have received a copy of the GNU General Public License * along with CommandStation. If not, see . */ -#if defined(MBEXPERIMENTAL) || defined(ARDUINO_ARCH_STM32) + #include "IO_Modbus.h" #include "defines.h" void ModbusADU::setTransactionId(uint16_t transactionId) { @@ -646,4 +646,3 @@ Modbusnode::Modbusnode(VPIN firstVpin, int nPins, uint8_t busNo, uint8_t nodeID, } } -#endif \ No newline at end of file diff --git a/IO_Modbus.h b/IO_Modbus.h index 070365e..d0f4779 100644 --- a/IO_Modbus.h +++ b/IO_Modbus.h @@ -51,7 +51,7 @@ #ifndef IO_MODBUS_H #define IO_MODBUS_H -#if defined(MBEXPERIMENTAL) || defined(ARDUINO_ARCH_STM32) + #include "IODevice.h" class ModbusADU { public: @@ -408,5 +408,5 @@ public: } }; -#endif + #endif // IO_MODBUS_H