1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-10 21:24:12 +01:00

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 https://github.com/arduino/Arduino/issues/693
This commit is contained in:
per1234 2017-07-02 03:03:39 -07:00 committed by Cristian Maglie
parent cba0435367
commit 352df2c15f

View File

@ -58,7 +58,6 @@ void loop() {
Serial.println(stringThree); // prints "Sensor Value: 401" or whatever value analogRead(A0) has Serial.println(stringThree); // prints "Sensor Value: 401" or whatever value analogRead(A0) has
// adding a variable long integer to a string: // adding a variable long integer to a string:
long currentTime = millis();
stringOne = "millis() value: "; stringOne = "millis() value: ";
stringThree = stringOne + millis(); stringThree = stringOne + millis();
Serial.println(stringThree); // prints "The millis: 345345" or whatever value currentTime has Serial.println(stringThree); // prints "The millis: 345345" or whatever value currentTime has