Skip to content

Commit

Permalink
Merge pull request #6 from Sensing-Dev/features/add-note-for-user-wai…
Browse files Browse the repository at this point in the history
…t-time

confirmed to work with vender id = 054c
  • Loading branch information
Fixstars-momoko authored Feb 7, 2024
2 parents ed78574 + 96f3fdb commit 7bf1b07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CMAKELists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ target_link_libraries(winusb_installer PRIVATE getopt.lib)

install(FILES ${LIBWDI_DIR}/x64/Release/dll/libwdi.dll DESTINATION "." )
install(FILES ${CMAKE_BINARY_DIR}/Release/winusb_installer.exe DESTINATION "." )
install(FILES ${PROJECT_DIR}/COPYING_LGPL.txt DESTINATION "." )
install(FILES ${PROJECT_DIR}/COPYING.txt DESTINATION "." )
install(FILES ${PROJECT_DIR}/COPYING_LGPL DESTINATION "." )
install(FILES ${PROJECT_DIR}/COPYING DESTINATION "." )
7 changes: 4 additions & 3 deletions src/winusb-installer.c → src/winusb_installer.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ int main(int argc, char* argv[]){
}

vendor_id = (int)strtol(argv[1], NULL, 16);
printf("%i\n", vendor_id);
printf("Targeted vernder id is %s\n", argv[1]);

// list all
struct wdi_options_create_list option = {TRUE, TRUE, TRUE};
Expand All @@ -41,19 +41,20 @@ int main(int argc, char* argv[]){
};

if (wdi_prepare_driver(device, ".", "target_device.inf", &driver_option) == WDI_SUCCESS) {
printf("********************************************************\n");
printf("* This process may take up to 5 minutes... please wait *\n");
printf("********************************************************\n");
wdi_install_driver(device, ".", "target_device.inf", NULL);
}
return 0;
}else{
printf("\n");
}

}

wdi_destroy_list(list);
}else{
printf("Faile\n");
}

return 0;
}

0 comments on commit 7bf1b07

Please sign in to comment.