Skip to content

Commit

Permalink
feat(systemLoads): add firmware name, when it is different to Klipper…
Browse files Browse the repository at this point in the history
… for MCUs

Signed-off-by: Stefan Dej <meteyou@gmail.com>
  • Loading branch information
meteyou committed Jun 15, 2024
1 parent b5599ef commit bfd0627
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 bfd0627

Please sign in to comment.