Skip to content

Commit 9e52bf0

Browse files
Earle F. Philhower, IIIEarle F. Philhower, III
Earle F. Philhower, III
authored and
Earle F. Philhower, III
committed
Use "bool" for "boolean" type
Match current Arduino definition to avoid issues with comparison operations. arduino/Arduino#2147 arduino/Arduino@20ac20f Fixes esp8266#5440
1 parent 5e4c2e9 commit 9e52bf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp8266/Arduino.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ typedef uint16_t word;
188188
#define bit(b) (1UL << (b))
189189
#define _BV(b) (1UL << (b))
190190

191-
typedef uint8_t boolean;
191+
typedef bool boolean;
192192
typedef uint8_t byte;
193193

194194
void init(void);

0 commit comments

Comments
 (0)