Skip to content

Commit

Permalink
check deprecated attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
mathertel committed May 8, 2023
1 parent 1488295 commit b95e13a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

All notable changes to this project will be documented in this file starting 2021.

## [2.0.5] - 2023-05-07
## [2.0.6] - 2023-05-08

* CPP Checks added in Github actions. Thanks to @mkinney
* Debouncing input levels implemented in a central place. Thanks to @IhorNehrutsa
* Docu for using lamda functions as callbacks, Thanks to @gergovari
* .clang-format file added to support code formatting in IDE 2.x (and others)
* Fixing examples for ESP8266

* Fixing examples for ESP8266 and ESP32.
* GitHub Action extended to compile for ESP8266 and ESP32

## [2.0.4] - 2022-01-22

Expand Down Expand Up @@ -71,4 +71,4 @@ The library now supports to detect multiple (>2) clicks in a row using **attachM

* The **InterruptOneButton.ino** example now is using attachInterrupt instead of UNO specific register modifications.

* The **SpecialInput.ino** example was added to shpow how to use the OneButton algorythm and input pattern recognition with your own source of input.
* The **SpecialInput.ino** example was added to show how to use the OneButton algorithm and input pattern recognition with your own source of input.
3 changes: 2 additions & 1 deletion src/OneButton.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ class OneButton
/**
* set # millisec after safe click is assumed.
*/
void setDebounceTicks(const unsigned int ms); // obsolete
[[deprecated("Use setDebounceMs() instead.")]]
void setDebounceTicks(const unsigned int ms); // deprecated
void setDebounceMs(const unsigned int ms) { setDebounceTicks(ms); };

/**
Expand Down

0 comments on commit b95e13a

Please sign in to comment.