Fix wrong button check in booter (STM32F4 disco)
@@ -58,7 +58,7 @@ int main(void) {
// if the USER button (blue one) is pressed, skip the check for a valid CLR image and remain in booter
// the user button in this board has a pull-up resistor so the check has to be inverted
- if (palReadPad(GPIOA, GPIOA_BUTTON))
+ if (!palReadPad(GPIOA, GPIOA_BUTTON))
{
// check for valid CLR image
if(CheckValidCLRImage((uint32_t)&__nanoImage_end__))
