mirror of https://github.com/ksherlock/ample.git
laser 3000 does not have ram options. quick fix until fixed.
This commit is contained in:
parent
f651ca6b26
commit
bbcc41cc10
|
@ -23,6 +23,16 @@
|
||||||
<string>RAM</string>
|
<string>RAM</string>
|
||||||
<key>options</key>
|
<key>options</key>
|
||||||
<array>
|
<array>
|
||||||
|
<dict>
|
||||||
|
<key>intValue</key>
|
||||||
|
<integer>192</integer>
|
||||||
|
<key>description</key>
|
||||||
|
<string>192K</string>
|
||||||
|
<key>value</key>
|
||||||
|
<string>192K</string>
|
||||||
|
<key>default</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
|
|
|
@ -407,6 +407,12 @@ def make_ram(machine):
|
||||||
}
|
}
|
||||||
for x in machine.findall('ramoption')
|
for x in machine.findall('ramoption')
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# special case for laser 3000....
|
||||||
|
if len(options) == 0 and machine.get('name') == 'las3000':
|
||||||
|
options.append( { "intValue": 192, "description": "192K", "value": "192K", "default": True} )
|
||||||
|
|
||||||
|
|
||||||
# sort and add empty starting entry.
|
# sort and add empty starting entry.
|
||||||
options.sort(key=lambda x: x["intValue"])
|
options.sort(key=lambda x: x["intValue"])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue