mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Corrected an error in StringComparisonOperators example
This commit is contained in:
@ -114,10 +114,10 @@ void loop() {
|
|||||||
stringTwo += analogRead(A5);
|
stringTwo += analogRead(A5);
|
||||||
|
|
||||||
if (stringOne.compareTo(stringTwo) < 0 ) {
|
if (stringOne.compareTo(stringTwo) < 0 ) {
|
||||||
Serial.println(stringOne + " comes after " + stringTwo);
|
Serial.println(stringOne + " comes before " + stringTwo);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Serial.println(stringOne + " comes before " + stringTwo);
|
Serial.println(stringOne + " comes after " + stringTwo);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user