Skip to content

Commit

Permalink
Merge branch 'bugfix/intr_flags_to_level_v4.4' into 'release/v4.4'
Browse files Browse the repository at this point in the history
fix(intr_flags_to_level): fix value returned one more than correct value (v4.4)

See merge request espressif/esp-idf!25426
  • Loading branch information
ESP-Marius committed Sep 6, 2023
2 parents 1cb288e + 21c0223 commit 9f11e6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/esp_hw_support/include/esp_intr_alloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**@}*/
Expand Down

0 comments on commit 9f11e6f

Please sign in to comment.