esp8266 / esp8266/Arduino

Example sketch TickerParameter.ino implementation doesn't match its comments

Open
#9,203 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
16.7k
Forks
13.1k
PR merge metrics
No merged PRs in 30d

Description

### Basic Infos

- [x] This issue complies with the [issue POLICY doc](https://github.com/esp8266/Arduino/blob/master/POLICY.md).
- [x] I have read the documentation at [readthedocs](https://arduino-esp8266.readthedocs.io/en/latest) and the issue is not addressed there.
- [x] I have tested that the issue is present in current master branch (aka latest git).
- [ ] I have searched the issue tracker for a similar issue.
- [ ] If there is a stack dump, I have decoded it.
- [x] I have filled out all fields below.

#### Platform

n/a

### Settings in IDE

n/a

### Problem Description

The example sketch [TickerParameter.ino](https://github.com/esp8266/Arduino/blob/19b7a29720a6f2c95d06e2ea4baa335dcf32e68f/libraries/Ticker/examples/TickerParameter/TickerParameter.ino)

says in comment:

> This sample runs two tickers that both call one callback function, but with different arguments.

However, implementations used three `Ticker` instances. A callback function with a parameter is used on one of them but always with same parameter. I suspect this example may have been left in a work-in-progress state and never completed.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.