mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-22 16:14:37 +08:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user