diff --git a/src/platforms/stlink/platform.c b/src/platforms/stlink/platform.c index cb549002..df976cf5 100644 --- a/src/platforms/stlink/platform.c +++ b/src/platforms/stlink/platform.c @@ -93,12 +93,10 @@ void platform_srst_set_val(bool assert) gpio_set_mode(SRST_PORT, GPIO_MODE_OUTPUT_50_MHZ, GPIO_CNF_OUTPUT_OPENDRAIN, srst_pin); gpio_clear(SRST_PORT, srst_pin); - while (gpio_get(SRST_PORT, srst_pin)) {}; } else { gpio_set_mode(SRST_PORT, GPIO_MODE_INPUT, GPIO_CNF_INPUT_PULL_UPDOWN, srst_pin); gpio_set(SRST_PORT, srst_pin); - while (!gpio_get(SRST_PORT, srst_pin)) {}; } }