Skip to content

Commit

Permalink
Fixing CI build for Arduino SAM Due. (arduino-libraries#180)
Browse files Browse the repository at this point in the history
The class EthernetServer, derived from Server, derived from Print does not contain a 'flush' method as for all other cores.
  • Loading branch information
aentinger authored and tzzee committed Aug 20, 2024
1 parent 31e379a commit 6329499
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/PagerServer/PagerServer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ void loop() {
Serial.println(s); // print the message to Serial Monitor
client.print("echo: "); // this is only for the sending client
server.println(s); // send the message to all connected clients
#ifndef ARDUINO_ARCH_SAM
server.flush(); // flush the buffers
#endif /* !defined(ARDUINO_ARCH_SAM) */
}
}

0 comments on commit 6329499

Please sign in to comment.