feat(systemLoads): add firmware name, when it is not Klipper (#1911)

This commit is contained in:
Stefan Dej 2024-06-23 14:11:52 +02:00 committed by GitHub
parent a7b157aee8
commit 9701877230
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -416,7 +416,9 @@ export const getters: GetterTree<PrinterState, RootState> = {
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) {