From fb9cd7bc01178930a6421c62dfb055fe5060dd50 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Thu, 26 Dec 2019 22:59:05 -0600 Subject: [PATCH] drv/ioport/ioport_lpf2: fix bad final pin state 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 --- lib/pbio/drv/ioport/ioport_lpf2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pbio/drv/ioport/ioport_lpf2.c b/lib/pbio/drv/ioport/ioport_lpf2.c index 67c26d11d..7c55b94fc 100644 --- a/lib/pbio/drv/ioport/ioport_lpf2.c +++ b/lib/pbio/drv/ioport/ioport_lpf2.c @@ -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) {