720f3b3eb6
The location of the config folder has changed. OctoPrint will try to migrate the configuration from its old location (~/.printerwebui, ...) to its new one (~/.octoprint, ...). For this to work the following conditions must be met: 1) the old config folder exists and is a directory 2) the new config folder does not exist at all. The migration functionality will be in the future.
20 lines
327 B
Python
20 lines
327 B
Python
|
|
avrChipDB = {
|
|
'ATMega1280': {
|
|
'signature': [0x1E, 0x97, 0x03],
|
|
'pageSize': 128,
|
|
'pageCount': 512,
|
|
},
|
|
'ATMega2560': {
|
|
'signature': [0x1E, 0x98, 0x01],
|
|
'pageSize': 128,
|
|
'pageCount': 1024,
|
|
},
|
|
}
|
|
|
|
def getChipFromDB(sig):
|
|
for chip in avrChipDB.values():
|
|
if chip['signature'] == sig:
|
|
return chip
|
|
return False
|
|
|