diff --git a/platformio.ini b/platformio.ini index 36e7ef0..32cb44a 100644 --- a/platformio.ini +++ b/platformio.ini @@ -16,7 +16,7 @@ debug_tool = stlink lib_ldf_mode = deep+ [env:LedBoardV11] -board = STM32L031K6 +board = nucleo_l031K6 build_flags = -DHARDWAREVERSION=11 diff --git a/src/buttons.cpp b/src/buttons.cpp index d9708ae..ce2cf5c 100644 --- a/src/buttons.cpp +++ b/src/buttons.cpp @@ -158,7 +158,7 @@ uint8_t buttonPressedCount(void) uint8_t count = 0; for (auto &&button : buttonlist) { - if (!button == NULL) + if (button != NULL) { if (button->isPressed()) {