From 44da41ffc85830eba7859bb3a44f6b4b786347ce Mon Sep 17 00:00:00 2001 From: Matthias Hertel Date: Thu, 1 Aug 2024 20:16:54 +0200 Subject: [PATCH] fix explicit warning again., changelog --- CHANGELOG.md | 9 +++++++++ src/OneButton.h | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 55dd579..488041b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ All notable changes to this project will be documented in this file starting 2021. +## [2.6.0] - 2024-08-01 + +* The new `setup(...)` function allows deferred initialisation. +* The SimpleOneButton.ino includes a configuration for the Arduino Nano ESP32 +* Supporting a new press event. +* using `bool` instead of `boolean` that is a deprecated type by Arduino. +* changes in debouncing. +* standard Arduino style .clang formatting in changed files. + ## [2.5.0] - 2023-12-02 This release is a minor update including som smaller fixes. diff --git a/src/OneButton.h b/src/OneButton.h index b8ea690..57fb34a 100644 --- a/src/OneButton.h +++ b/src/OneButton.h @@ -51,7 +51,7 @@ class OneButton { * @param activeLow Set to true when the input level is LOW when the button is pressed, Default is true. * @param pullupActive Activate the internal pullup when available. Default is true. */ - OneButton(const int pin, const bool activeLow = true, const bool pullupActive = true); + explicit OneButton(const int pin, const bool activeLow = true, const bool pullupActive = true); // ----- Set runtime parameters -----