From e74b1e590bdf387a8a7e0818754273bf5121c54b Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Thu, 7 Feb 2019 03:31:39 +0000 Subject: [PATCH] Use "bool" for "boolean" type (#5693) Match current Arduino definition to avoid issues with comparison operations. https://github.com/arduino/Arduino/issues/2147 https://github.com/arduino/Arduino/commit/20ac20f6295b5bd923144ab6844564f13ddc8ca8 Fixes #5440 --- cores/esp8266/Arduino.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/esp8266/Arduino.h b/cores/esp8266/Arduino.h index d7bb99f63d..34e5fb8fce 100644 --- a/cores/esp8266/Arduino.h +++ b/cores/esp8266/Arduino.h @@ -188,7 +188,7 @@ typedef uint16_t word; #define bit(b) (1UL << (b)) #define _BV(b) (1UL << (b)) -typedef uint8_t boolean; +typedef bool boolean; typedef uint8_t byte; void init(void);