Skip to content

Commit

Permalink
Update ongeki_hardware.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
XxLittleCxX committed Jul 26, 2023
1 parent 0c8c984 commit 86d4436
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/ongeki_hardware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ namespace component {

const uint8_t PIN_BIT[10] = {
// L: A B C SIDE MENU
1, 1, 1, 1, 1,
1, 1, 1, 1, 1};
1, 1, 1, 0, 1,
1, 1, 1, 0, 1};

const uint8_t SWITCH_INDEX[10] = {
0, 0, 0, 1, 1,
Expand Down Expand Up @@ -166,7 +166,7 @@ namespace component {
rg = false;

for (auto i = 0; i < 10; i++) {
auto read = gpio_get(PIN_MAP[i]) ^ 1;
auto read = gpio_get(PIN_MAP[i]) ^ PIN_BIT[i];
if (read) {
data->switches[SWITCH_INDEX[i]] += 1 << SWITCH_OFFSET[i];
}
Expand Down

0 comments on commit 86d4436

Please sign in to comment.