1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-20 14:54:31 +01:00

Fixed non working example: StringStartsWithEndsWith.ino

This commit is contained in:
Cristian Maglie 2013-11-18 10:27:36 +01:00
parent 84e9d70415
commit 7902fc2591

View File

@ -42,7 +42,7 @@ void loop() {
String sensorReading = "sensor = ";
sensorReading += analogRead(A0);
Serial.print (sensorReading);
if (sensorReading.endsWith(0)) {
if (sensorReading.endsWith("0")) {
Serial.println(". This reading is divisible by ten");
}
else {