mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/intr_flags_to_level_v5.0' into 'release/v5.0'
fix(intr_flags_to_level): fix value returned one more than correct value (v5.0) See merge request espressif/esp-idf!25425
This commit is contained in:
commit
6c6a55ef91
@ -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…
Reference in New Issue
Block a user