Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
21km43 committed Jan 19, 2025
1 parent beee4ba commit 9c17a2e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/usb_device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,8 @@ pub mod ch375_driver {
unsafe {
if CH375_DRIVER.is_none() {
CH375_DRIVER = Some(
//Library::new("WCHLinkDLL.dll")
//.map_err(|_| Error::Custom("WCHLinkDLL.dll not found".to_string()))?,
Library::new("CH375DLL64.dll")
.map_err(|_| Error::Custom("CH375DLL64.dll not found".to_string()))?,
Library::new("WCHLinkDLL.dll")
.map_err(|_| Error::Custom("WCHLinkDLL.dll not found".to_string()))?,
);
let lib = CH375_DRIVER.as_ref().unwrap();
let get_version: Symbol<unsafe extern "stdcall" fn() -> u32> =
Expand Down

0 comments on commit 9c17a2e

Please sign in to comment.