Skip to content

Commit

Permalink
fix: schism should scan expander_input before checking button holds
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyHaystack committed Jun 8, 2024
1 parent 40c118a commit b743868
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions config/schism/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ void setup() {
reboot_bootloader();
}

// Also scan I/O expander for inputs, but after the bootloader check in case it causes a crash.
expander_input.UpdateInputs(inputs);

// Turn on LED to indicate firmware booted.
gpio_init(PICO_DEFAULT_LED_PIN);
gpio_set_dir(PICO_DEFAULT_LED_PIN, GPIO_OUT);
Expand Down Expand Up @@ -115,10 +118,6 @@ void setup1() {
while (backends == nullptr) {
tight_loop_contents();
}
// Wire.setSDA(20);
// Wire.setSCL(21);
// Wire.begin();
// expander_input = new Pca9671Input(expander_button_mappings, expander_button_count, Wire);
}

void loop1() {
Expand Down

0 comments on commit b743868

Please sign in to comment.