Skip to content

Commit df666c6

Browse files
authored
Fixed error: modbus-esp8266/src/Modbus.cpp:318:25: error: comparison is always false due to limited range of data type [-Werror=type-limits] (#292)
1 parent ea2bd0e commit df666c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Modbus.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,10 @@ void Modbus::slavePDU(uint8_t* frame) {
315315
bufSize += recLen * 2 + 2; // 4 bytes for header + data
316316
recs += 7;
317317
}
318-
if (bufSize > MODBUS_MAX_FRAME) { // Frame to return too large
319-
exceptionResponse(fcode, EX_ILLEGAL_ADDRESS);
320-
return;
321-
}
318+
// if (bufSize > MODBUS_MAX_FRAME) { // Frame to return too large
319+
// exceptionResponse(fcode, EX_ILLEGAL_ADDRESS);
320+
// return;
321+
// }
322322
uint8_t* srcFrame = _frame;
323323
_frame = (uint8_t*)malloc(bufSize);
324324
if (!_frame) {

0 commit comments

Comments
 (0)