Skip to content

Commit 54fc247

Browse files
committed
esp8266/ets_alt_task: Update for vendor SDK 1.5.0.
SDK 1.5.0 has a task with priority 3: ets_task(401001f4, 3, 3fff9808, 4). Recognizing SDK version requires the latets esp-open-sdk build.
1 parent 97375f4 commit 54fc247

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

esp8266/ets_alt_task.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include "osapi.h"
33
#include "os_type.h"
44
#include "ets_sys.h"
5+
#include <esp_sdk_ver.h>
56
#include "etshal.h"
67
#include "user_interface.h"
78

@@ -22,7 +23,11 @@ struct task_entry {
2223
static void (*idle_cb)(void *);
2324
static void *idle_arg;
2425

25-
#define FIRST_PRIO 0x14
26+
#if ESP_SDK_VERSION >= 010500
27+
# define FIRST_PRIO 3
28+
#else
29+
# define FIRST_PRIO 0x14
30+
#endif
2631
#define LAST_PRIO 0x20
2732
#define PRIO2ID(prio) ((prio) - FIRST_PRIO)
2833

0 commit comments

Comments
 (0)