Skip to content

Commit

Permalink
feat(systemLoads): add firmware name, when it is not Klipper (#1911)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteyou authored Jun 23, 2024
1 parent a7b157a commit 9701877
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/store/printer/getters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9701877

Please sign in to comment.