From 1debb5cfd63bf690bf29e7a176d82ecb9743f274 Mon Sep 17 00:00:00 2001 From: dweller Date: Thu, 17 Oct 2024 23:54:11 +0300 Subject: fix GPIO init ordering --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index cda91b4..ff01e92 100644 --- a/main.c +++ b/main.c @@ -286,12 +286,12 @@ int main(void) gpio_put(rom_pins[i], rom_pins_def[i]); } - readmode(); - gpio_init(PIN_IO_OE); gpio_set_dir(PIN_IO_OE, GPIO_OUT); gpio_put(PIN_IO_OE, PIN_IO_OE_DEF); + readmode(); + for(int i = 0; i < SR_PIN_CNT; i++) { gpio_init(sr_pins[i]); -- cgit v1.2.3