diff --git a/hardware/hackrf-one/hackrf-one.net b/hardware/hackrf-one/hackrf-one.net index f11f07b9..1fb1b32b 100644 --- a/hardware/hackrf-one/hackrf-one.net +++ b/hardware/hackrf-one/hackrf-one.net @@ -3456,7 +3456,7 @@ (footprint hackrf:GSG-SOIC8-208) (fields (field (name Manufacturer) Winbond) - (field (name "Part Number") W25Q80BVSSIG) + (field (name "Part Number") W25Q80JVSSIQ) (field (name Description) "IC FLASH 8MBIT 8SOIC")) (libsource (lib hackrf) (part W25Q80BV)) (sheetpath (names /mcu/usb/power/) (tstamps /5037043E/)) @@ -6570,4 +6570,4 @@ (net (code 378) (name "Net-(U4-Pad20)") (node (ref U4) (pin 20))) (net (code 379) (name "Net-(U4-Pad3)") - (node (ref U4) (pin 3))))) \ No newline at end of file + (node (ref U4) (pin 3))))) diff --git a/hardware/hackrf-one/mcu.sch b/hardware/hackrf-one/mcu.sch index 35bf7159..6df65110 100644 --- a/hardware/hackrf-one/mcu.sch +++ b/hardware/hackrf-one/mcu.sch @@ -2088,11 +2088,11 @@ L W25Q80BV U20 U 1 1 4F825D1B P 9800 1450 F 0 "U20" H 9800 1200 60 0000 C CNN -F 1 "W25Q80BV" H 9800 1700 60 0000 C CNN +F 1 "W25Q80JV" H 9800 1700 60 0000 C CNN F 2 "hackrf:GSG-SOIC8-208" H 9800 1450 60 0001 C CNN F 3 "" H 9800 1450 60 0001 C CNN F 4 "Winbond" H 9800 1450 60 0001 C CNN "Manufacturer" -F 5 "W25Q80BVSSIG" H 9800 1450 60 0001 C CNN "Part Number" +F 5 "W25Q80JVSSIQ" H 9800 1450 60 0001 C CNN "Part Number" F 6 "IC FLASH 8MBIT 8SOIC" H 9800 1450 60 0001 C CNN "Description" 1 9800 1450 1 0 0 -1 diff --git a/host/libhackrf/src/hackrf.c b/host/libhackrf/src/hackrf.c index 23d07fb2..b764d00d 100644 --- a/host/libhackrf/src/hackrf.c +++ b/host/libhackrf/src/hackrf.c @@ -347,7 +347,6 @@ extern "C" int ADDCALL hackrf_init(void) { int libusb_error; - open_devices++; if (g_libusb_context != NULL) { return HACKRF_SUCCESS; } @@ -356,7 +355,6 @@ int ADDCALL hackrf_init(void) if( libusb_error != 0 ) { last_libusb_error = libusb_error; - open_devices--; return HACKRF_ERROR_LIBUSB; } else { return HACKRF_SUCCESS; @@ -581,6 +579,7 @@ static int hackrf_open_setup(libusb_device_handle* usb_device, hackrf_device** d } *device = lib_device; + open_devices++; return HACKRF_SUCCESS; }