mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 01:29:21 -04:00
fix(intr_flags_to_level): fix value returned one more than correct value
This commit is contained in:
parent
4efb3d7a7a
commit
5a5fae5f1e
@ -304,7 +304,7 @@ void esp_intr_disable_source(int inum);
|
||||
*/
|
||||
static inline int esp_intr_flags_to_level(int flags)
|
||||
{
|
||||
return __builtin_ffs((flags & ESP_INTR_FLAG_LEVELMASK) >> 1) + 1;
|
||||
return __builtin_ffs((flags & ESP_INTR_FLAG_LEVELMASK) >> 1);
|
||||
}
|
||||
|
||||
/**@}*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user