kopia lustrzana https://github.com/espressif/esp-idf
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!25426pull/9151/merge
commit
9f11e6fb1f
|
@ -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);
|
||||
}
|
||||
|
||||
/**@}*/
|
||||
|
|
Ładowanie…
Reference in New Issue