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 a74597d commit 9c7e3abCopy full SHA for 9c7e3ab
build/shared/examples/08.Strings/StringStartsWithEndsWith/StringStartsWithEndsWith.ino
@@ -42,12 +42,11 @@ 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 {
49
Serial.println(". This reading is not divisible by ten");
50
-
51
52
53
// do nothing while true:
0 commit comments