fix: hide rpm in temperature_fans without tachometer_pin (#1489)
This commit is contained in:
1 parent
0b47a80b13
commit
e929c7cc0f
1 file changed
+4
-1
@@ -231,7 +231,10 @@ export default class TemperaturePanelListItem extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
get rpm() {
|
||||
if (!('rpm' in this.printerObject)) return null
|
||||
const rpm = this.printerObject.rpm ?? null
|
||||
|
||||
// return null when rpm doesn't exist
|
||||
if (rpm === null) return null
|
||||
|
||||
return parseInt(this.printerObject.rpm)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user