Skip to content

Commit 20ac20f

Browse files
committed
Arduino custom type boolean is now mapped to bool type
Fixes #2151 Fixes #2147
1 parent 863cb41 commit 20ac20f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

hardware/arduino/avr/cores/arduino/Arduino.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ typedef unsigned int word;
114114

115115
#define bit(b) (1UL << (b))
116116

117-
typedef uint8_t boolean;
117+
typedef bool boolean;
118118
typedef uint8_t byte;
119119

120120
void init(void);

hardware/arduino/sam/cores/arduino/wiring_constants.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,9 @@ typedef unsigned int word;
9292

9393
#define bit(b) (1UL << (b))
9494

95-
// TODO: to be checked
96-
typedef uint8_t boolean ;
95+
typedef bool boolean ;
9796
typedef uint8_t byte ;
9897

99-
10098
#ifdef __cplusplus
10199
} // extern "C"
102100
#endif // __cplusplus

0 commit comments

Comments
 (0)