From bbcc41cc10cb163da856680ff79e3e887ed24b33 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Thu, 1 Sep 2022 18:24:33 -0400 Subject: [PATCH] laser 3000 does not have ram options. quick fix until fixed. --- Ample/Resources/las3000.plist | 10 ++++++++++ python/mkmachines.py | 6 ++++++ 2 files changed, 16 insertions(+) diff --git a/Ample/Resources/las3000.plist b/Ample/Resources/las3000.plist index 33339d8..b091235 100644 --- a/Ample/Resources/las3000.plist +++ b/Ample/Resources/las3000.plist @@ -23,6 +23,16 @@ RAM options + + intValue + 192 + description + 192K + value + 192K + default + + diff --git a/python/mkmachines.py b/python/mkmachines.py index 1bf02b1..c659764 100644 --- a/python/mkmachines.py +++ b/python/mkmachines.py @@ -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"])