File tree 1 file changed +1
-2
lines changed
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ extern "C" bool can_yield() {
97
97
static inline void esp_yield_within_cont () __attribute__((always_inline));
98
98
static void esp_yield_within_cont () {
99
99
cont_yield (g_pcont);
100
+ s_cycles_since_yield_start = ESP.getCycleCount ();
100
101
run_scheduled_recurrent_functions ();
101
102
}
102
103
@@ -116,7 +117,6 @@ extern "C" void __yield() {
116
117
if (can_yield ()) {
117
118
esp_schedule ();
118
119
esp_yield_within_cont ();
119
- s_cycles_since_yield_start = ESP.getCycleCount ();
120
120
}
121
121
else {
122
122
panic ();
@@ -134,7 +134,6 @@ extern "C" void optimistic_yield(uint32_t interval_us) {
134
134
}
135
135
}
136
136
137
-
138
137
// Replace ets_intr_(un)lock with nestable versions
139
138
extern " C" void IRAM_ATTR ets_intr_lock () {
140
139
if (ets_intr_lock_stack_ptr < ETS_INTR_LOCK_NEST_MAX)
You can’t perform that action at this time.
0 commit comments