Add ESP8266 example

This commit is contained in:
cpq committed 2020-12-27 01:29:42 +00:00
1 parent 7d1ef2ffe8
commit 71a22adc06
13 files changed
+194 -51

No files matched your search

+2 -1
View File
@@ -269,7 +269,8 @@ unsigned long mg_millis(void) {
#elif MG_ARCH == MG_ARCH_ESP32
return esp_timer_get_time() / 1000;
#elif MG_ARCH == MG_ARCH_ESP8266
return system_get_time() / 1000;
// return system_get_time() / 1000;
return xTaskGetTickCount() * portTICK_PERIOD_MS;
#elif MG_ARCH == MG_ARCH_FREERTOS
return xTaskGetTickCount() * portTICK_PERIOD_MS;
#else