Merge branch 'bugfix/intr_flags_to_level_v5.1' into 'release/v5.1'

fix(intr_flags_to_level): fix value returned one more than correct value (v5.1)

See merge request espressif/esp-idf!25424
This commit is contained in:
Marius Vikhammer 2023-08-24 08:34:37 +08:00
commit 9838675d3b

View File

@ -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);
}
/**@}*/