From 007ba1aaa38070bffb48c9961eacc4214ad96107 Mon Sep 17 00:00:00 2001 From: Mystic-Mirage Date: Sun, 19 Nov 2017 21:47:11 +0200 Subject: [PATCH] Fix too wide 'word' type -- it should be 16-bit instead of 32-bit --- 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 cc35250153..66e2eeca5d 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))