From 30bf14130b9e33905ad9337ef4081f5006d886e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Sun, 19 May 2024 17:42:27 +0200 Subject: [PATCH] Bool is deprecated --- src/OneButton.cpp | 2 +- src/OneButton.h | 2 +- src/OneButtonTiny.cpp | 2 +- src/OneButtonTiny.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/OneButton.cpp b/src/OneButton.cpp index 68e8e84..3e09768 100644 --- a/src/OneButton.cpp +++ b/src/OneButton.cpp @@ -35,7 +35,7 @@ OneButton::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::OneButton(const int pin, const boolean activeLow, const bool pullupActive) +OneButton::OneButton(const int pin, const bool activeLow, const bool pullupActive) { _pin = pin; diff --git a/src/OneButton.h b/src/OneButton.h index 30d540e..77a8476 100644 --- a/src/OneButton.h +++ b/src/OneButton.h @@ -47,7 +47,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. */ - explicit OneButton(const int pin, const boolean activeLow = true, const bool pullupActive = true); + explicit OneButton(const int pin, const bool activeLow = true, const bool pullupActive = true); // ----- Set runtime parameters ----- diff --git a/src/OneButtonTiny.cpp b/src/OneButtonTiny.cpp index 2197a33..88da31f 100644 --- a/src/OneButtonTiny.cpp +++ b/src/OneButtonTiny.cpp @@ -26,7 +26,7 @@ * @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. */ -OneButtonTiny::OneButtonTiny(const int pin, const boolean activeLow, const bool pullupActive) { +OneButtonTiny::OneButtonTiny(const int pin, const bool activeLow, const bool pullupActive) { _pin = pin; if (activeLow) { diff --git a/src/OneButtonTiny.h b/src/OneButtonTiny.h index 4a1990b..9c2373c 100644 --- a/src/OneButtonTiny.h +++ b/src/OneButtonTiny.h @@ -31,7 +31,7 @@ class OneButtonTiny { * @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. */ - explicit OneButtonTiny(const int pin, const boolean activeLow = true, const bool pullupActive = true); + explicit OneButtonTiny(const int pin, const bool activeLow = true, const bool pullupActive = true); /** * set # millisec after safe click is assumed.