Skip to content

Commit e74b1e5

Browse files
earlephilhowerdevyte
authored andcommitted
Use "bool" for "boolean" type (#5693)
Match current Arduino definition to avoid issues with comparison operations. arduino/Arduino#2147 arduino/Arduino@20ac20f Fixes #5440
1 parent f706c83 commit e74b1e5

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)