From 33f3fca93ba64c463ed22853a4a67e802419c3a2 Mon Sep 17 00:00:00 2001 From: Daniel Lublin Date: Wed, 15 Feb 2023 13:38:32 +0100 Subject: [PATCH] Indicate we run the raw usb proto, not HID --- iceprog/rpi_pico_interface.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/iceprog/rpi_pico_interface.c b/iceprog/rpi_pico_interface.c index 9c0cf21..8832a86 100644 --- a/iceprog/rpi_pico_interface.c +++ b/iceprog/rpi_pico_interface.c @@ -286,14 +286,15 @@ void rpi_pico_interface_init() { exit(-1); } - if (libusb_claim_interface (devhaccess, 0) != 0) { - perror ("libusb_claim_interface error"); - usb_exit(-1); - } + if (libusb_claim_interface (devhaccess, 0) != 0) { + perror ("libusb_claim_interface error"); + usb_exit(-1); + } + + printf("This iceprog has raw power!\n"); led_set(true); - pin_set_direction(PIN_POWER, true); pin_set_direction(PIN_SCK, true); pin_set_direction(PIN_MOSI, true);