Skip to content

Commit

Permalink
Pulling line high first allows for consistent rebooting
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyman727 committed Feb 16, 2016
1 parent afa8445 commit eab49ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/flash.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ def randbyte():
def reset_openwrt(device):
# Reset the USB interface
device.reset();
# Control transfer to put RST line high
device.ctrl_transfer(0x40, 0x10, 1, 0, '')
# Control transfer to put RST line low
device.ctrl_transfer(0x40, 0x10, 0, 0, '')
# Control transfer to put RST line high
Expand Down

0 comments on commit eab49ec

Please sign in to comment.