We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea2bd0e commit df666c6Copy full SHA for df666c6
src/Modbus.cpp
@@ -315,10 +315,10 @@ void Modbus::slavePDU(uint8_t* frame) {
315
bufSize += recLen * 2 + 2; // 4 bytes for header + data
316
recs += 7;
317
}
318
- if (bufSize > MODBUS_MAX_FRAME) { // Frame to return too large
319
- exceptionResponse(fcode, EX_ILLEGAL_ADDRESS);
320
- return;
321
- }
+// if (bufSize > MODBUS_MAX_FRAME) { // Frame to return too large
+// exceptionResponse(fcode, EX_ILLEGAL_ADDRESS);
+// return;
+// }
322
uint8_t* srcFrame = _frame;
323
_frame = (uint8_t*)malloc(bufSize);
324
if (!_frame) {
0 commit comments