mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
remove useless PICO_ALLOW_SLEED_IN_EXCEPTION
This commit is contained in:
parent
aca685ceae
commit
e371f6af60
1 changed files with 2 additions and 2 deletions
|
|
@ -325,9 +325,9 @@ static int64_t sev_callback(__unused alarm_id_t id, __unused void *user_data) {
|
|||
#endif
|
||||
|
||||
void sleep_until(absolute_time_t t) {
|
||||
#if PICO_ON_DEVICE && !PICO_ALLOW_SLEEP_IN_EXCEPTION && !defined(NDEBUG)
|
||||
#if PICO_ON_DEVICE && !defined(NDEBUG)
|
||||
if (__get_current_exception()) {
|
||||
panic("Attempted to sleep inside of an exception handler");
|
||||
panic("Attempted to sleep inside of an exception handler; use busy_wait if you must");
|
||||
}
|
||||
#endif
|
||||
#if !PICO_TIME_DEFAULT_ALARM_POOL_DISABLED
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue