fix: match mcu temp sensor of additional mcus (#957)

Signed-off-by: Stefan Dej meteyou@gmail.com
This commit is contained in:
Stefan Dej authored and GitHub committed 2022-07-10 22:07:19 +02:00
1 parent 46aa7cc7c6
commit c514b3f130
1 file changed
+1 -1
+1 -1
View File
@@ -601,7 +601,7 @@ export const getters: GetterTree<PrinterState, RootState> = {
const sensors = getters.getMcuTempSensors
// eslint-disable-next-line
sensors.forEach((sensor: { key: string; settings: any; object: any }) => {
if (sensor.settings?.sensor_mcu === mcuName && sensor.object?.temperature) {
if (mcuName.endsWith(sensor.settings?.sensor_mcu) && sensor.object?.temperature) {
output = {
temperature: sensor.object.temperature.toFixed(0),
measured_min_temp: sensor.object.measured_min_temp?.toFixed(1) ?? null,