diff --git a/plugins/USBPrinting/avr_isp/chipDB.py b/plugins/USBPrinting/avr_isp/chipDB.py index 891b5a394a..2da6586503 100644 --- a/plugins/USBPrinting/avr_isp/chipDB.py +++ b/plugins/USBPrinting/avr_isp/chipDB.py @@ -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. """ -avrChipDB = { +avr_chip_db = { "ATMega1280": { "signature": [0x1E, 0x97, 0x03], "pageSize": 128, @@ -18,7 +18,7 @@ avrChipDB = { } def getChipFromDB(sig): - for chip in avrChipDB.values(): + for chip in avr_chip_db.values(): if chip["signature"] == sig: return chip return False diff --git a/plugins/USBPrinting/avr_isp/ispBase.py b/plugins/USBPrinting/avr_isp/ispBase.py index 8c816decbb..b5b5f8792e 100644 --- a/plugins/USBPrinting/avr_isp/ispBase.py +++ b/plugins/USBPrinting/avr_isp/ispBase.py @@ -45,13 +45,13 @@ class IspBase(): """ 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. """ 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. """