Skip to content

Commit

Permalink
drv/ioport/ioport_lpf2: fix bad final pin state
Browse files Browse the repository at this point in the history
This fixes the final pin state for the ID1 pin in poll_dcm(). Using a
logic analyzer shows this to now match the LEGO firmware.

movehub fw size +0
  • Loading branch information
dlech committed Dec 27, 2019
1 parent 6d8ecae commit fb9cd7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pbio/drv/ioport/ioport_lpf2.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ static PT_THREAD(poll_dcm(ioport_dev_t *ioport)) {
// set ID2 as input
pbdrv_gpio_input(&pins.id2);

// set ID1 low
pbdrv_gpio_out_low(&pins.uart_tx);
// set ID1 high
pbdrv_gpio_out_high(&pins.uart_tx);
pbdrv_gpio_out_low(&pins.uart_buf);

if (data->type_id == data->prev_type_id) {
Expand Down

0 comments on commit fb9cd7b

Please sign in to comment.