Merge branch 'bugfix/intr_flags_to_level_v4.4' into 'release/v4.4'

fix(intr_flags_to_level): fix value returned one more than correct value (v4.4)

See merge request espressif/esp-idf!25426
pull/9151/merge
Marius Vikhammer 2023-09-06 16:35:58 +08:00
commit 9f11e6fb1f
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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