From 117bc875ffdd1f4b11af0dd236e0e12a84748e53 Mon Sep 17 00:00:00 2001 From: Mystic-Mirage Date: Mon, 20 Nov 2017 00:42:15 +0200 Subject: [PATCH] Fix too wide 'word' type -- it should be 16-bit instead of 32-bit (#3851) --- 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 cc3525015..66e2eeca5 100644 --- a/cores/esp8266/Arduino.h +++ b/cores/esp8266/Arduino.h @@ -178,7 +178,7 @@ void ets_intr_unlock(); #define _NOP() do { __asm__ volatile ("nop"); } while (0) #endif -typedef unsigned int word; +typedef uint16_t word; #define bit(b) (1UL << (b)) #define _BV(b) (1UL << (b))