From 970187723078fec6517a94e5677511256bf09d2a Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sun, 23 Jun 2024 14:11:52 +0200 Subject: [PATCH] feat(systemLoads): add firmware name, when it is not Klipper (#1911) --- src/store/printer/getters.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/store/printer/getters.ts b/src/store/printer/getters.ts index ba2f3d6d..ba0204e2 100644 --- a/src/store/printer/getters.ts +++ b/src/store/printer/getters.ts @@ -416,7 +416,9 @@ export const getters: GetterTree = { Object.keys(state).forEach((key) => { if (key === 'mcu' || key.startsWith('mcu ')) { const mcu = state[key] - const versionOutput = (mcu.mcu_version ?? 'unknown').split('-').slice(0, 4).join('-') + let versionOutput = (mcu.mcu_version ?? 'unknown').split('-').slice(0, 4).join('-') + + if ('app' in mcu && mcu.app !== 'Klipper') versionOutput = mcu.app + ' ' + versionOutput let load = 0 if (mcu.last_stats?.mcu_task_avg && mcu.last_stats?.mcu_task_stddev) {