Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5427a80

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 arduino/Arduino#693
1 parent a5dbada commit 5427a80

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

‎examples/08.Strings/StringAdditionOperator/StringAdditionOperator.ino‎

Lines changed: 0 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /