We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b18e283 commit 7a2b377Copy full SHA for 7a2b377
examples/08.Strings/StringStartsWithEndsWith/StringStartsWithEndsWith.ino
@@ -42,7 +42,7 @@ void loop() {
42
String sensorReading = "sensor = ";
43
sensorReading += analogRead(A0);
44
Serial.print (sensorReading);
45
- if (sensorReading.endsWith(0)) {
+ if (sensorReading.endsWith("0")) {
46
Serial.println(". This reading is divisible by ten");
47
}
48
else {
0 commit comments