Skip to content

Commit

Permalink
Change TCP_STOP to TCP_KEEP_ALIVE
Browse files Browse the repository at this point in the history
  • Loading branch information
andresarmento committed Nov 11, 2015
1 parent 0597191 commit 7789932
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libraries/ModbusIP_ENC28J60/ModbusIP_ENC28J60.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ void ModbusIP::task() {
BufferFiller bfill = ether.tcpOffset();
bfill.emit_raw((const char *)_MBAP, 7);
bfill.emit_raw((const char *)_frame, _len);
#ifdef TCP_STOP
ether.httpServerReply(bfill.position());
#else
#ifdef TCP_KEEP_ALIVE
ether.httpServerReplyAck ();
ether.httpServerReply_with_flags(bfill.position(), TCP_FLAGS_ACK_V|TCP_FLAGS_PUSH_V);
ether.httpServerReply_with_flags(bfill.position(), TCP_FLAGS_ACK_V|TCP_FLAGS_PUSH_V);
#else
ether.httpServerReply(bfill.position());
#endif

}
Expand Down

0 comments on commit 7789932

Please sign in to comment.