diff options
-rw-r--r-- | projects/bootloader/dfu.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/projects/bootloader/dfu.c b/projects/bootloader/dfu.c index eeaa035..f4a9cf9 100644 --- a/projects/bootloader/dfu.c +++ b/projects/bootloader/dfu.c @@ -38,10 +38,11 @@ #include "stm-led.h" #include "stm-uart.h" #include "stm-flash.h" - #undef HAL_OK + #define HAL_OK LIBHAL_OK #include "hal.h" +#include "hal_internal.h" #undef HAL_OK #include <string.h> @@ -99,6 +100,8 @@ static int do_login(void) uart_flush(); + hal_ks_init_read_only_pins_only(); + if (hal_rpc_login(client, user, pin, n) != LIBHAL_OK) { uart_send_string2(STM_UART_MGMT, "\r\nAccess denied\r\n"); return -1; |