diff --git a/application.c b/application.c index d5ec347..35d9969 100644 --- a/application.c +++ b/application.c @@ -296,7 +296,7 @@ static void command_target_reset(void* argument) } const bool open_drain = (GPIO_OTYPER(GPIO_PORT(TARGET_RST_PIN)) & GPIO_PIN(TARGET_RST_PIN)); // if the output is configured as open drain (else it's push-pull) - printf("reset pin set to %s active %s\n", open_drain ? "open-drain" : "push-pull", active_low ? "low" : "high"); + printf("reset pin set to %s active %s\n", open_drain ? "open-drain" : "push-pull (3.3V)", active_low ? "low" : "high"); if (gpio_get(GPIO_PORT(TARGET_RST_PIN), GPIO_PIN(TARGET_RST_PIN))) { if (active_low) { puts("reset released\n"); @@ -400,7 +400,7 @@ static void command_monitor(void* argument) for (uint8_t i = channel_start; i <= channel_stop; i++) { gpio_mode_setup(channel_ports[i], GPIO_MODE_INPUT, GPIO_PUPD_PULLDOWN, channel_pins[i]); // set to pull down } - } else if (1 == pull) { + } else if (3 == pull) { puts("channels are pulled high to 3.3V using internal 40 kOhm resistor\n"); for (uint8_t i = channel_start; i <= channel_stop; i++) { gpio_mode_setup(channel_ports[i], GPIO_MODE_INPUT, GPIO_PUPD_PULLUP, channel_pins[i]); // set to pull up