Skip to content

Commit 352df2c

Browse files
per1234cmaglie
authored andcommitted
Remove unused variable from StringAdditionOperator example
- Avoids confusing beginners who assume there must be some reason for this useless line of code. - Fixes "warning: unused variable 'currentTime'" compiler warning. Closes #693
1 parent cba0435 commit 352df2c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

build/shared/examples/08.Strings/StringAdditionOperator/StringAdditionOperator.ino

-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ void loop() {
5858
Serial.println(stringThree); // prints "Sensor Value: 401" or whatever value analogRead(A0) has
5959

6060
// adding a variable long integer to a string:
61-
long currentTime = millis();
6261
stringOne = "millis() value: ";
6362
stringThree = stringOne + millis();
6463
Serial.println(stringThree); // prints "The millis: 345345" or whatever value currentTime has

0 commit comments

Comments
 (0)