Skip to content

Commit d7b8b60

Browse files
authored
Fixing CI build for Arduino SAM Due. (#180)
The class EthernetServer, derived from Server, derived from Print does not contain a 'flush' method as for all other cores.
1 parent 6a5b8be commit d7b8b60

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/PagerServer/PagerServer.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ void loop() {
6464
Serial.println(s); // print the message to Serial Monitor
6565
client.print("echo: "); // this is only for the sending client
6666
server.println(s); // send the message to all connected clients
67+
#ifndef ARDUINO_ARCH_SAM
6768
server.flush(); // flush the buffers
69+
#endif /* !defined(ARDUINO_ARCH_SAM) */
6870
}
6971
}

0 commit comments

Comments
 (0)