Added yield() declaration when compiling for MONGOOSE_OS, which is added do mos.yml as well.

This commit is contained in:
Dirk Jahnke 2018-11-05 10:47:15 +01:00
parent 3378d24f89
commit fc9ec2fb2c
2 changed files with 103 additions and 99 deletions

View File

@ -15,6 +15,7 @@ cdefs:
ARDUINO: 150
RH_PLATFORM: RH_PLATFORM_ESP8266
TEENSYDUINO: 0
MONGOOSE_OS: 1
tags:
- arduino

View File

@ -875,6 +875,9 @@
#define YIELD yield();
#elif (RH_PLATFORM == RH_PLATFORM_ESP8266)
// ESP8266 also hash it
#if defined(MONGOOSE_OS)
extern void yield(void);
#endif
#define YIELD yield();
#else
#define YIELD