mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 11:17:49 -06:00
Fix a few more style violations in the avr_isp code.
This commit is contained in:
parent
a4a0dfdf89
commit
d5d88e2300
2 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,7 @@ To support more chips add the relevant data to the avrChipDB list.
|
||||||
This is a python 3 conversion of the code created by David Braam for the Cura project.
|
This is a python 3 conversion of the code created by David Braam for the Cura project.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
avrChipDB = {
|
avr_chip_db = {
|
||||||
"ATMega1280": {
|
"ATMega1280": {
|
||||||
"signature": [0x1E, 0x97, 0x03],
|
"signature": [0x1E, 0x97, 0x03],
|
||||||
"pageSize": 128,
|
"pageSize": 128,
|
||||||
|
@ -18,7 +18,7 @@ avrChipDB = {
|
||||||
}
|
}
|
||||||
|
|
||||||
def getChipFromDB(sig):
|
def getChipFromDB(sig):
|
||||||
for chip in avrChipDB.values():
|
for chip in avr_chip_db.values():
|
||||||
if chip["signature"] == sig:
|
if chip["signature"] == sig:
|
||||||
return chip
|
return chip
|
||||||
return False
|
return False
|
||||||
|
|
|
@ -45,13 +45,13 @@ class IspBase():
|
||||||
"""
|
"""
|
||||||
self.sendISP([0xAC, 0x80, 0x00, 0x00])
|
self.sendISP([0xAC, 0x80, 0x00, 0x00])
|
||||||
|
|
||||||
def writeFlash(self, flashData):
|
def writeFlash(self, flash_data):
|
||||||
"""
|
"""
|
||||||
Write the flash data, needs to be implemented in a subclass.
|
Write the flash data, needs to be implemented in a subclass.
|
||||||
"""
|
"""
|
||||||
raise IspError("Called undefined writeFlash")
|
raise IspError("Called undefined writeFlash")
|
||||||
|
|
||||||
def verifyFlash(self, flashData):
|
def verifyFlash(self, flash_data):
|
||||||
"""
|
"""
|
||||||
Verify the flash data, needs to be implemented in a subclass.
|
Verify the flash data, needs to be implemented in a subclass.
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue