From 272b1e52f662027ef0b91ea329a3d7c7f2cab05f Mon Sep 17 00:00:00 2001 From: Walid Kayhan Date: Fri, 15 Mar 2024 11:37:03 -0400 Subject: [PATCH] Add migration script to set controller type to grbl in connection widget --- src/app/store/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/store/index.js b/src/app/store/index.js index ae4ac8daf..6f8bbb8bc 100644 --- a/src/app/store/index.js +++ b/src/app/store/index.js @@ -255,6 +255,10 @@ const migrateStore = () => { return; } + if (semver.lt(cnc.version, '1.4.4')) { + store.replace('widgets.connection.controller.type', 'Grbl'); + } + if (semver.lt(cnc.version, '1.4.3')) { const storeProbe = store.get('workspace.probeProfile'); const defaultProbe = get(defaultState, 'workspace.probeProfile');