Fix code style violations in the avr_isp

This commit is contained in:
daid 2015-10-28 15:05:07 +01:00
parent 8c629c511c
commit a4a0dfdf89
4 changed files with 77 additions and 77 deletions

View file

@ -5,21 +5,21 @@ This is a python 3 conversion of the code created by David Braam for the Cura pr
"""
avrChipDB = {
'ATMega1280': {
'signature': [0x1E, 0x97, 0x03],
'pageSize': 128,
'pageCount': 512,
"ATMega1280": {
"signature": [0x1E, 0x97, 0x03],
"pageSize": 128,
"pageCount": 512,
},
'ATMega2560': {
'signature': [0x1E, 0x98, 0x01],
'pageSize': 128,
'pageCount': 1024,
"ATMega2560": {
"signature": [0x1E, 0x98, 0x01],
"pageSize": 128,
"pageCount": 1024,
},
}
def getChipFromDB(sig):
for chip in avrChipDB.values():
if chip['signature'] == sig:
if chip["signature"] == sig:
return chip
return False