Skip to content

Commit

Permalink
Fix digitalread not always sending a message from setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ArendJan committed Oct 9, 2023
1 parent 29f3695 commit 2c460b5
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 2c460b5

Please sign in to comment.