Skip to content

Commit 7a2b377

Browse files
committed
Fixed non working example: StringStartsWithEndsWith.ino
1 parent b18e283 commit 7a2b377

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/08.Strings/StringStartsWithEndsWith/StringStartsWithEndsWith.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void loop() {
4242
String sensorReading = "sensor = ";
4343
sensorReading += analogRead(A0);
4444
Serial.print (sensorReading);
45-
if (sensorReading.endsWith(0)) {
45+
if (sensorReading.endsWith("0")) {
4646
Serial.println(". This reading is divisible by ten");
4747
}
4848
else {

0 commit comments

Comments
 (0)