fix adding cnc ops

This commit is contained in:
Stewart Allen 2024-05-28 18:02:52 -04:00
commit c7456c7736
7 changed files with 313 additions and 276 deletions

View file

@ -274,7 +274,7 @@ CAM.init = function(kiri, api) {
$('op-add-list').onclick = (ev) => {
let settings = API.conf.get();
let { process, device } = settings;
switch (ev.target.innerText) {
switch (ev.target.innerText.toLowerCase()) {
case "index": return func.opAddIndex();
case "laser on": return func.opAddLaserOn();
case "laser off": return func.opAddLaserOff();