laser 3000 does not have ram options. quick fix until fixed.

This commit is contained in:
Kelvin Sherlock 2022-09-01 18:24:33 -04:00
parent f651ca6b26
commit bbcc41cc10
2 changed files with 16 additions and 0 deletions

View File

@ -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>

View File

@ -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"])