mirror of
https://github.com/ksherlock/ample.git
synced 2024-06-17 15:29:38 +00:00
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>
|
||||
<key>options</key>
|
||||
<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>
|
||||
</dict>
|
||||
</array>
|
||||
|
|
|
@ -407,6 +407,12 @@ def make_ram(machine):
|
|||
}
|
||||
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.
|
||||
options.sort(key=lambda x: x["intValue"])
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user