Skip to content

Commit 919c66b

Browse files
per1234sandeepmistry
authored andcommitted
Replace boolean type with bool in examples
This is part of a move to encourage use of the standard bool type over Arduino's non-standard boolean type alias.
1 parent dfaa6ce commit 919c66b

File tree

15 files changed

+16
-16
lines changed

15 files changed

+16
-16
lines changed

examples/GPRSPing/GPRSPing.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void setup() {
3939

4040
Serial.println("Starting Arduino GPRS ping.");
4141
// connection state
42-
boolean connected = false;
42+
bool connected = false;
4343

4444
// After starting the modem with GSM.begin()
4545
// attach the shield to the GPRS network with the APN, login and password

examples/GPRSUdpNtpClient/GPRSUdpNtpClient.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void setup()
5656

5757
Serial.println("Starting Arduino GPRS NTP client.");
5858
// connection state
59-
boolean connected = false;
59+
bool connected = false;
6060

6161
// After starting the modem with GSM.begin()
6262
// attach the shield to the GPRS network with the APN, login and password

examples/GsmLocation/GsmLocation.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void setup() {
4040

4141
Serial.println("Starting GSM location.");
4242
// connection state
43-
boolean connected = false;
43+
bool connected = false;
4444

4545
// After starting the modem with GSM.begin()
4646
// attach the shield to the GPRS network with the APN, login and password

examples/GsmSSLWebClient/GsmSSLWebClient.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void setup() {
4545

4646
Serial.println("Starting Arduino web client.");
4747
// connection state
48-
boolean connected = false;
48+
bool connected = false;
4949

5050
// After starting the modem with GSM.begin()
5151
// attach the shield to the GPRS network with the APN, login and password

examples/GsmWebClient/GsmWebClient.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void setup() {
4545

4646
Serial.println("Starting Arduino web client.");
4747
// connection state
48-
boolean connected = false;
48+
bool connected = false;
4949

5050
// After starting the modem with GSM.begin()
5151
// attach the shield to the GPRS network with the APN, login and password

examples/GsmWebServer/GsmWebServer.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void setup() {
4242
}
4343

4444
// connection state
45-
boolean connected = false;
45+
bool connected = false;
4646

4747
// Start GSM shield
4848
// If your SIM has PIN, pass it as a parameter of begin() in quotes

examples/MakeVoiceCall/MakeVoiceCall.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void setup() {
4343
Serial.println("Make Voice Call");
4444

4545
// connection state
46-
boolean connected = false;
46+
bool connected = false;
4747

4848
// Start GSM shield
4949
// If your SIM has PIN, pass it as a parameter of begin() in quotes

examples/ReceiveSMS/ReceiveSMS.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void setup() {
3838
Serial.println("SMS Messages Receiver");
3939

4040
// connection state
41-
boolean connected = false;
41+
bool connected = false;
4242

4343
// Start GSM connection
4444
while (!connected) {

examples/ReceiveVoiceCall/ReceiveVoiceCall.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void setup() {
3838
Serial.println("Receive Voice Call");
3939

4040
// connection state
41-
boolean connected = false;
41+
bool connected = false;
4242

4343
// Start GSM shield
4444
// If your SIM has PIN, pass it as a parameter of begin() in quotes

examples/SendSMS/SendSMS.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void setup() {
3939
Serial.println("SMS Messages Sender");
4040

4141
// connection state
42-
boolean connected = false;
42+
bool connected = false;
4343

4444
// Start GSM shield
4545
// If your SIM has PIN, pass it as a parameter of begin() in quotes

0 commit comments

Comments
 (0)