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:
parent
84e9d70415
commit
7902fc2591
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user