Corrected an error in StringComparisonOperators example

This commit is contained in:
Tom Igoe 2010-09-07 18:21:21 +00:00
parent 47d3b65e51
commit 6628bb061f
1 changed files with 2 additions and 2 deletions

View File

@ -114,10 +114,10 @@ void loop() {
stringTwo += analogRead(A5);
if (stringOne.compareTo(stringTwo) < 0 ) {
Serial.println(stringOne + " comes after " + stringTwo);
Serial.println(stringOne + " comes before " + stringTwo);
}
else {
Serial.println(stringOne + " comes before " + stringTwo);
Serial.println(stringOne + " comes after " + stringTwo);
}
}