Skip to content

Commit 2c0b7a6

Browse files
committed
Fixed some weird use of "&" operator
See #7
1 parent 374e177 commit 2c0b7a6

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

examples/GsmSSLWebClient/GsmSSLWebClient.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ GSMSSLClient client;
3131
GPRS gprs;
3232
GSM gsmAccess;
3333

34-
// URL, path & port (for example: arduino.cc)
34+
// URL, path and port (for example: arduino.cc)
3535
char server[] = "arduino.cc";
3636
char path[] = "/asciilogo.txt";
3737
int port = 443; // port 443 is the default for HTTPS

examples/GsmWebClient/GsmWebClient.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ GSMClient client;
3131
GPRS gprs;
3232
GSM gsmAccess;
3333

34-
// URL, path & port (for example: arduino.cc)
34+
// URL, path and port (for example: arduino.cc)
3535
char server[] = "arduino.cc";
3636
char path[] = "/asciilogo.txt";
3737
int port = 80; // port 80 is the default for HTTP

examples/Tools/PinManagement/PinManagement.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void setup() {
7171
}
7272
} else if (pin_query == -2) {
7373
// the worst case, PIN and PUK are locked
74-
Serial.println("PIN & PUK locked. Use PIN2/PUK2 in a mobile phone.");
74+
Serial.println("PIN and PUK locked. Use PIN2/PUK2 in a mobile phone.");
7575
while (true);
7676
} else {
7777
// SIM does not requires authetication
@@ -110,7 +110,7 @@ void loop() {
110110
user_input = readSerial();
111111
// activate/deactivate PIN lock
112112
PINManager.switchPIN(user_input);
113-
} else if (user_op == "2" & PINManager.getPINUsed()) {
113+
} else if (user_op == "2" && PINManager.getPINUsed()) {
114114
Serial.println("Enter your actual PIN code:");
115115
String oldPIN = readSerial();
116116
Serial.println("Now, enter your new PIN code:");

examples/Tools/SerialGSMPassthrough/SerialGSMPassthrough.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
- 1500 mAh or higher lipo battery connected
1414
- SIM card
1515
16-
Make sure the Serial Monitor's line ending is set to "Both NL & CR"
16+
Make sure the Serial Monitor's line ending is set to "Both NL and CR"
1717
1818
create 11 December 2017
1919
Sandeep Mistry

examples/Tools/TestWebServer/TestWebServer.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void setup() {
4747
// Start GSM shield
4848
// If your SIM has PIN, pass it as a parameter of begin() in quotes
4949
while (!connected) {
50-
if ((gsmAccess.begin(PINNUMBER) == GSM_READY) &
50+
if ((gsmAccess.begin(PINNUMBER) == GSM_READY) &&
5151
(gprs.attachGPRS(GPRS_APN, GPRS_LOGIN, GPRS_PASSWORD) == GPRS_READY)) {
5252
connected = true;
5353
} else {

0 commit comments

Comments
 (0)