Skip to content

Commit 7902fc2

Browse files
committed
Fixed non working example: StringStartsWithEndsWith.ino
1 parent 84e9d70 commit 7902fc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/shared/examples/08.Strings/StringStartsWithEndsWith/StringStartsWithEndsWith.ino

Lines changed: 1 addition & 1 deletion
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)