From bfd062761fadaa8ce114251f1f99df8ad9a62ec6 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sat, 15 Jun 2024 20:53:21 +0200 Subject: [PATCH] feat(systemLoads): add firmware name, when it is different to Klipper for MCUs Signed-off-by: Stefan Dej --- 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 ba2f3d6d9..ba0204e27 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) {