Disable DFU support on windows

The DFU device appears to behave differently (returns unexpected packets/stati, fails on control transfers, etc) on Windows compared to Linux for unknown obscure reasons. Thus we have to disable DFU support on Windows.
This commit is contained in:
Samuel Sadok
2021-09-08 07:25:11 -07:00
parent 78758c44e0
commit 9f816bb3be
+6
View File
@@ -139,6 +139,12 @@ try:
elif args.command == 'dfu':
print_version()
import platform
if platform.system() == "Windows":
print("This tool does not support firmware update on Windows. Please refer to "
"https://docs.odriverobotics.com/odrivetool#upgrading-firmware-with-a-different-dfu-tool "
"for other options.")
sys.exit(1)
import odrive.dfu
odrive.dfu.launch_dfu(args, logger, app_shutdown_token)