Skip to content

Commit

Permalink
Minor formatting changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Cope committed May 11, 2015
1 parent 24917d0 commit 7bbfd4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PyHT6022/HantekFirmware/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def fx2_ihex_to_control_packets(firmware_location):
packets = []
packets = list()
# disable 8051
packets.append(FirmwareControlPacket(1, 0xe600, '\x01'))
with open(firmware_location, 'r') as f:
Expand All @@ -30,7 +30,7 @@ def fx2_ihex_to_control_packets(firmware_location):
packets.append(FirmwareControlPacket(record_len, addr, array.array('B', record_data).tostring()))
elif record_type == 0x01:
assert file_checksum == 0xFF
break;
break
else:
raise ValueError('Unknown record type 0x{:2x} encountered!'.format(record_type))
# enable 8051
Expand Down

0 comments on commit 7bbfd4c

Please sign in to comment.