Skip to content

Commit efcd691

Browse files
author
Karl Herbig
committed
use the recv_filter flag also for ASCII mode
1 parent 53c5894 commit efcd691

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ namespace Modbus {
253253

254254
Device::Private::setBackend (net, connection, settings);
255255
#if MODBUSPP_HAVE_SERIAL_MULTI_SLAVES
256-
if (net == Rtu) {
256+
if (net == Rtu || net == Ascii) {
257257
modbus_serial_set_recv_filter (ctx(), FALSE);
258258
}
259259
#endif

0 commit comments

Comments
 (0)