From a2a1ff5cc8d4d874e94cd4fb08a1e3ad8380e7e9 Mon Sep 17 00:00:00 2001 From: Chris685 Date: Mon, 9 Jan 2023 19:34:41 +0100 Subject: [PATCH] feat: support Arduino framework v3.1.0 (#40) --- platformio.ini | 4 ++++ src/Task.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index ec27f1d..662999b 100644 --- a/platformio.ini +++ b/platformio.ini @@ -18,3 +18,7 @@ board_build.f_flash = 80000000L board_build.ldscript = eagle.flash.4m3m.ld upload_speed = 115200 test_filter = embedded +; this should be replaced with the correct platform version once espressif8266 has caught up. +platform_packages = + framework-arduinoespressif8266 @ https://github.com/esp8266/Arduino.git + toolchain-xtensa@~2.100300.210717 diff --git a/src/Task.h b/src/Task.h index af9d15a..8f4dd00 100644 --- a/src/Task.h +++ b/src/Task.h @@ -17,7 +17,7 @@ class Task : public AbstractTask { } void yield() override { - cont_yield(&context); + cont_suspend(&context); } private: