Added yield() declaration when compiling for MONGOOSE_OS, which is added do mos.yml as well.
This commit is contained in:
parent
3378d24f89
commit
fc9ec2fb2c
1
mos.yml
1
mos.yml
|
@ -15,6 +15,7 @@ cdefs:
|
||||||
ARDUINO: 150
|
ARDUINO: 150
|
||||||
RH_PLATFORM: RH_PLATFORM_ESP8266
|
RH_PLATFORM: RH_PLATFORM_ESP8266
|
||||||
TEENSYDUINO: 0
|
TEENSYDUINO: 0
|
||||||
|
MONGOOSE_OS: 1
|
||||||
|
|
||||||
tags:
|
tags:
|
||||||
- arduino
|
- arduino
|
||||||
|
|
|
@ -875,6 +875,9 @@
|
||||||
#define YIELD yield();
|
#define YIELD yield();
|
||||||
#elif (RH_PLATFORM == RH_PLATFORM_ESP8266)
|
#elif (RH_PLATFORM == RH_PLATFORM_ESP8266)
|
||||||
// ESP8266 also hash it
|
// ESP8266 also hash it
|
||||||
|
#if defined(MONGOOSE_OS)
|
||||||
|
extern void yield(void);
|
||||||
|
#endif
|
||||||
#define YIELD yield();
|
#define YIELD yield();
|
||||||
#else
|
#else
|
||||||
#define YIELD
|
#define YIELD
|
||||||
|
|
Loading…
Reference in New Issue