diff --git a/src/Modbus.cpp b/src/Modbus.cpp index 526e89b..b2007a2 100644 --- a/src/Modbus.cpp +++ b/src/Modbus.cpp @@ -315,10 +315,10 @@ void Modbus::slavePDU(uint8_t* frame) { bufSize += recLen * 2 + 2; // 4 bytes for header + data recs += 7; } - if (bufSize > MODBUS_MAX_FRAME) { // Frame to return too large - exceptionResponse(fcode, EX_ILLEGAL_ADDRESS); - return; - } +// if (bufSize > MODBUS_MAX_FRAME) { // Frame to return too large +// exceptionResponse(fcode, EX_ILLEGAL_ADDRESS); +// return; +// } uint8_t* srcFrame = _frame; _frame = (uint8_t*)malloc(bufSize); if (!_frame) {