From caf8670cffdcbefafc4e6bb2fb61a4b8e81d64dd Mon Sep 17 00:00:00 2001 From: robbederks Date: Wed, 29 Jul 2020 14:36:23 +0200 Subject: [PATCH] Fix uno getting detected as dos (#578) --- board/board.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/board.h b/board/board.h index 28516299c..84fca5469 100644 --- a/board/board.h +++ b/board/board.h @@ -23,7 +23,7 @@ void detect_board_type(void) { // SPI lines floating: white (TODO: is this reliable? Not really, we have to enable ESP/GPS to be able to detect this on the UART) set_gpio_output(GPIOC, 14, 1); set_gpio_output(GPIOC, 5, 1); - if(!detect_with_pull(GPIOB, 1, PULL_UP)){ + if(!detect_with_pull(GPIOB, 1, PULL_UP) && detect_with_pull(GPIOB, 15, PULL_UP)){ hw_type = HW_TYPE_DOS; current_board = &board_dos; } else if((detect_with_pull(GPIOA, 4, PULL_DOWN)) || (detect_with_pull(GPIOA, 5, PULL_DOWN)) || (detect_with_pull(GPIOA, 6, PULL_DOWN)) || (detect_with_pull(GPIOA, 7, PULL_DOWN))){