File tree 1 file changed +0
-12
lines changed
1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -167,11 +167,7 @@ bool EspClass::forcedModemSleep(uint32_t duration_us, fpm_wakeup_cb wakeupCb)
167
167
return false ;
168
168
}
169
169
// SDK turns on forced modem sleep in idle task
170
- #ifdef HAVE_ESP_SUSPEND
171
170
esp_delay (10 );
172
- #else
173
- delay (10 );
174
- #endif
175
171
return true ;
176
172
}
177
173
@@ -256,11 +252,7 @@ void EspClass::forcedLightSleepEnd(bool cancel)
256
252
{
257
253
if (!cancel) {
258
254
// SDK turns on forced light sleep in idle task
259
- #ifdef HAVE_ESP_SUSPEND
260
255
esp_suspend ();
261
- #else
262
- esp_yield ();
263
- #endif
264
256
}
265
257
#ifdef DEBUG_SERIAL
266
258
walk_timer_list ();
@@ -275,11 +267,7 @@ void EspClass::forcedLightSleepEnd(bool cancel)
275
267
saved_sleep_type = NONE_SLEEP_T;
276
268
if (cancel) {
277
269
// let the SDK catch up in idle task
278
- #ifdef HAVE_ESP_SUSPEND
279
270
esp_delay (10 );
280
- #else
281
- delay (10 );
282
- #endif
283
271
}
284
272
}
285
273
You can’t perform that action at this time.
0 commit comments