#ifdef LINUX
#include <stdio.h>
-#elif defined NODEMCU
-#include "ets_sys.h"
-#include "osapi.h"
-#include "gpio.h"
-#include "os_type.h"
#endif
#include "interpret.h"
read_message();
//Run tasks
- cyclestart = millis();
+ cyclestart = getmillis();
for(ct = 0; ct<MAXTASKS; ct++){
//See whether the task is even in use
if((curtask = task_get(ct)) == NULL){
#ifdef STM
int main(void){
-#elif defined NODEMCU
-void ICACHE_FLASH_ATTR user_init(){
+#elif defined ARDUINO_ESP8266_NODEMCU
+void setup(){
#elif defined LINUX
int main(int argc, char *argv[]){
gargc = argc;
while(true){
//Check for newtasks
loop();
- delay(100);
+ msdelay(100);
}
-#ifndef NODEMCU
+#ifndef ARDUINO_ESP8266_NODEMCU
return 0;
#endif
}