Skip to content

Commit 5309e5f

Browse files
committed
bugfix for upload_*_firmware_from_hex.py
Signed-off-by: Martin <[email protected]>
1 parent ecd6302 commit 5309e5f

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
2022-04-02: new firmware: HW calibration signal output via T2OUT pin (HW change) [ecd6302]
12
2022-03-21: Fix #15 - install Linux files only when building under Linux [be76527]
23
2022-03-14: More refactoring [5d434c2]
34
2022-03-14: Code cleanup / refactor [f4c52e1]

examples/upload_6021_firmware_from_hex.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import sys
66
from 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():
@@ -15,4 +15,4 @@
1515
print( "FW version", hex( scope.get_fw_version() ) )
1616
scope.close_handle()
1717
else:
18-
print( "usage: " + argv[0] + " path_to_hexfile" )
18+
print( "usage: " + sys.argv[0] + " path_to_hexfile" )

examples/upload_6022_firmware_from_hex.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import sys
66
from 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():
@@ -15,4 +15,4 @@
1515
print( "FW version", hex( scope.get_fw_version() ) )
1616
scope.close_handle()
1717
else:
18-
print( "usage: " + argv[0] + " path_to_hexfile" )
18+
print( "usage: " + sys.argv[0] + " path_to_hexfile" )

0 commit comments

Comments
 (0)