From 5a27b3ad4438da9bd9d3581c1864e343716e303d Mon Sep 17 00:00:00 2001 From: Armin Date: Mon, 16 Oct 2023 23:09:16 +0200 Subject: [PATCH] Fix wrong type of tEnableLEDFeedback in IRReceive.hpp --- README.md | 4 ++-- src/IRReceive.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9be6d43..fe4ca9a 100644 --- a/README.md +++ b/README.md @@ -669,7 +669,7 @@ These macros must be defined in your program **before** the line `#include ` | all | Selection of individual protocol(s) to be decoded. You can specify multiple protocols. See [here](https://github.com/Arduino-IRremote/Arduino-IRremote/blob/master/src/IRremote.hpp#L98-L121) | @@ -694,7 +694,7 @@ Modify them by enabling / disabling them, or change the values if applicable. These next macros for **TinyIRReceiver** must be defined in your program before the line `#include ` to take effect. | Name | Default value | Description | -|:---|---:|---| +|-|-:|-| | `IR_RECEIVE_PIN` | 2 | The pin number for TinyIRReceiver IR input, which gets compiled in. | | `IR_FEEDBACK_LED_PIN` | `LED_BUILTIN` | The pin number for TinyIRReceiver feedback LED, which gets compiled in. | | `NO_LED_FEEDBACK_CODE` | disabled | Disables the feedback LED function. Saves 14 bytes program memory. | diff --git a/src/IRReceive.hpp b/src/IRReceive.hpp index f466a70..aa92922 100644 --- a/src/IRReceive.hpp +++ b/src/IRReceive.hpp @@ -287,7 +287,7 @@ void IRrecv::begin(uint_fast8_t aReceivePin, bool aEnableLEDFeedback, uint_fast8 setReceivePin(aReceivePin); #if !defined(NO_LED_FEEDBACK_CODE) - bool tEnableLEDFeedback = DO_NOT_ENABLE_LED_FEEDBACK; + uint_fast8_t tEnableLEDFeedback = DO_NOT_ENABLE_LED_FEEDBACK; if (aEnableLEDFeedback) { tEnableLEDFeedback = LED_FEEDBACK_ENABLED_FOR_RECEIVE; }