Skip to content

Commit fd3f145

Browse files
committed
Replace boolean with standard bool.
This replaces teh arduino-typedef "boolean" with the standard "bool" type. The standard type makes sure that the value is always true or false. Also there is some discussion in arguino itdelf to get rid of boolean: arduino/Arduino#4673 Signed-off-by: Jan Losinski <[email protected]>
1 parent ee0fa67 commit fd3f145

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/ESPiLight.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ struct protocols_t *protocols = nullptr;
3333
struct protocols_t *used_protocols = nullptr;
3434

3535
volatile PulseTrain_t ESPiLight::_pulseTrains[RECEIVER_BUFFER_SIZE];
36-
boolean ESPiLight::_enabledReceiver;
36+
bool ESPiLight::_enabledReceiver;
3737
volatile int ESPiLight::_actualPulseTrain = 0;
3838
int ESPiLight::_avaiablePulseTrain = 0;
3939
volatile unsigned long ESPiLight::_lastChange =
@@ -177,7 +177,7 @@ void ESPiLight::setPulseTrainCallBack(PulseTrainCallBack rawCallback) {
177177

178178
void ESPiLight::sendPulseTrain(const uint16_t *pulses, int length,
179179
int repeats) {
180-
// boolean receiverState = _enabledReceiver;
180+
// bool receiverState = _enabledReceiver;
181181
int r = 0, x = 0;
182182
if (_outputPin >= 0) {
183183
// disableReceiver()

src/ESPiLight.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ class ESPiLight {
141141
/**
142142
* Internal functions
143143
*/
144-
static boolean _enabledReceiver; // If true, monitoring and decoding is
145-
// enabled. If false, interruptHandler will
146-
// return immediately.
144+
static bool _enabledReceiver; // If true, monitoring and decoding is
145+
// enabled. If false, interruptHandler will
146+
// return immediately.
147147
static volatile PulseTrain_t _pulseTrains[];
148148
static volatile int _actualPulseTrain;
149149
static int _avaiablePulseTrain;

0 commit comments

Comments
 (0)