This commit is contained in:
Олег Бородин
2025-01-18 13:25:14 +02:00
parent 4b289d1c46
commit 9ae1e7bc07
10 changed files with 137 additions and 27115 deletions

View File

@@ -25,7 +25,7 @@ void button_setup(button_t *button) {
}
static bool button_is_pressed(button_t *button) {
if (REG_BIT_VALUE(_MMIO_BYTE(button->pinaddr), button->outnum)) {
if (!REG_BIT_VALUE(_MMIO_BYTE(button->pinaddr), button->outnum)) {
return true;
}
return false;