Skip to content

Commit 5ce074a

Browse files
authored
Merge pull request #58 from per1234/boolean-bool
Replace boolean type with bool in examples
2 parents 7b5ee58 + ec93434 commit 5ce074a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

examples/BarometricPressureWebServer/BarometricPressureWebServer.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ void listenForEthernetClients() {
156156
if (client) {
157157
Serial.println("Got a client");
158158
// an http request ends with a blank line
159-
boolean currentLineIsBlank = true;
159+
bool currentLineIsBlank = true;
160160
while (client.connected()) {
161161
if (client.available()) {
162162
char c = client.read();

examples/ChatServer/ChatServer.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ IPAddress subnet(255, 255, 0, 0);
3232

3333
// telnet defaults to port 23
3434
EthernetServer server(23);
35-
boolean alreadyConnected = false; // whether or not the client was connected previously
35+
bool alreadyConnected = false; // whether or not the client was connected previously
3636

3737
void setup() {
3838
// You can use Ethernet.init(pin) to configure the CS pin

examples/DhcpChatServer/DhcpChatServer.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ IPAddress subnet(255, 255, 0, 0);
3636

3737
// telnet defaults to port 23
3838
EthernetServer server(23);
39-
boolean gotAMessage = false; // whether or not you got a message from the client yet
39+
bool gotAMessage = false; // whether or not you got a message from the client yet
4040

4141
void setup() {
4242
// You can use Ethernet.init(pin) to configure the CS pin

examples/WebServer/WebServer.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void loop() {
7575
if (client) {
7676
Serial.println("new client");
7777
// an http request ends with a blank line
78-
boolean currentLineIsBlank = true;
78+
bool currentLineIsBlank = true;
7979
while (client.connected()) {
8080
if (client.available()) {
8181
char c = client.read();

0 commit comments

Comments
 (0)