Skip to content

Commit

Permalink
Merge pull request #12 from ArendJan/25-mirteget_pin_value-never-retu…
Browse files Browse the repository at this point in the history
…rning

Fix digitalread not always sending a message from setup
  • Loading branch information
mklomp authored Oct 10, 2023
2 parents 1125b60 + 2c460b5 commit 8485e82
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Telemetrix4RpiPico.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ void set_pin_mode()
case DIGITAL_INPUT_PULL_DOWN:
the_digital_pins[pin].pin_mode = mode;
the_digital_pins[pin].reporting_enabled = command_buffer[SET_PIN_MODE_DIGITAL_IN_REPORTING_STATE];
the_digital_pins[pin].last_value = 0xFF;
gpio_init(pin);
gpio_set_dir(pin, GPIO_IN);
if (mode == DIGITAL_INPUT_PULL_UP)
Expand Down

0 comments on commit 8485e82

Please sign in to comment.