Skip to content

Commit 5566cfb

Browse files
authored
fix(Thermals): show extra sensor data (#1631)
Signed-off-by: Pedro Lamas <[email protected]>
1 parent 99e8cf1 commit 5566cfb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/store/printer/getters.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -752,10 +752,10 @@ export const getters: GetterTree<PrinterState, RootState> = {
752752
'temperature_probe',
753753
'tmc2240',
754754
'z_thermal_adjust'
755-
]
755+
] as const
756756
const supportedDrivers = [
757757
'tmc2240'
758-
]
758+
] as const
759759

760760
const sensors = Object.keys(state.printer)
761761
.reduce((groups, item) => {
@@ -773,7 +773,7 @@ export const getters: GetterTree<PrinterState, RootState> = {
773773
}).toString()
774774
: Vue.$filters.prettyCase(name)
775775
const color = Vue.$colorset.next(getKlipperType(item), item)
776-
const config = state.printer.configfile.settings[item]
776+
const config = state.printer.configfile.settings[item.toLowerCase()]
777777

778778
groups[name] = {
779779
...state.printer[item],
@@ -802,7 +802,7 @@ export const getters: GetterTree<PrinterState, RootState> = {
802802
'bme280',
803803
'htu21d',
804804
'sht3x'
805-
]
805+
] as const
806806

807807
if (supportedSensors.includes(sensorType)) {
808808
const sensor = state.printer[`${sensorType} ${name}`]

0 commit comments

Comments
 (0)