Remove trailing whitespace from Python files

This commit is contained in:
Nino van Hooff 2020-05-29 14:30:33 +02:00
parent 1e33360c35
commit 89f0970a88
157 changed files with 562 additions and 562 deletions

View file

@ -31,7 +31,7 @@ def readHex(filename):
check_sum &= 0xFF
if check_sum != 0:
raise Exception("Checksum error in hex file: " + line)
if rec_type == 0:#Data record
while len(data) < addr + rec_len:
data.append(0)

View file

@ -22,7 +22,7 @@ class IspBase():
if not self.chip:
raise IspError("Chip with signature: " + str(self.getSignature()) + "not found")
self.chipErase()
Logger.log("d", "Flashing %i bytes", len(flash_data))
self.writeFlash(flash_data)
Logger.log("d", "Verifying %i bytes", len(flash_data))

View file

@ -56,7 +56,7 @@ class Stk500v2(ispBase.IspBase):
self.close()
raise
self.serial.timeout = 5
def close(self):
if self.serial is not None:
self.serial.close()