update platform

This commit is contained in:
2021-10-21 16:25:15 +02:00
parent 4f9213834c
commit 495392ba9f
2 changed files with 2 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ debug_tool = stlink
lib_ldf_mode = deep+
[env:LedBoardV11]
board = STM32L031K6
board = nucleo_l031K6
build_flags =
-DHARDWAREVERSION=11

View File

@@ -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())
{