File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1+ 2022-04-02: new firmware: HW calibration signal output via T2OUT pin (HW change) [ecd6302]
122022-03-21: Fix #15 - install Linux files only when building under Linux [be76527]
232022-03-14: More refactoring [5d434c2]
342022-03-14: Code cleanup / refactor [f4c52e1]
Original file line number Diff line number Diff line change 55import sys
66from PyHT6022 .LibUsbScope import Oscilloscope
77
8- if len ( argv ) > 1 :
9- firmware = argv [ 1 ]
8+ if len ( sys . argv ) > 1 :
9+ firmware = sys . argv [ 1 ]
1010 scope = Oscilloscope ()
1111 scope .setup ()
1212 if not scope .open_handle ():
1515 print ( "FW version" , hex ( scope .get_fw_version () ) )
1616 scope .close_handle ()
1717else :
18- print ( "usage: " + argv [0 ] + " path_to_hexfile" )
18+ print ( "usage: " + sys . argv [0 ] + " path_to_hexfile" )
Original file line number Diff line number Diff line change 55import sys
66from PyHT6022 .LibUsbScope import Oscilloscope
77
8- if len ( argv ) > 1 :
9- firmware = argv [ 1 ]
8+ if len ( sys . argv ) > 1 :
9+ firmware = sys . argv [ 1 ]
1010 scope = Oscilloscope ()
1111 scope .setup ()
1212 if not scope .open_handle ():
1515 print ( "FW version" , hex ( scope .get_fw_version () ) )
1616 scope .close_handle ()
1717else :
18- print ( "usage: " + argv [0 ] + " path_to_hexfile" )
18+ print ( "usage: " + sys . argv [0 ] + " path_to_hexfile" )
You can’t perform that action at this time.
0 commit comments