AnsweredAssumed Answered

Bug report: Error in EXTI initialization on STM32L052

Question asked by Osama Dengler on Oct 18, 2015
Latest reply on Oct 22, 2015 by 68516
Hi all,

lost one day finding that this line 259 from stm32l0xx_hal_gpio.c is missing some braces:
bad (current):
temp &= ~((uint32_t)0x0F) << (4 * (position & 0x03));

right (should be):
temp &= ~(((uint32_t)0x0F) << (4 * (position & 0x03)));

Is there any quality control on Cube? :-(

/Osama

Outcomes