From 8ac08245956f90547ab40ccc8398ef10624e2fc9 Mon Sep 17 00:00:00 2001 From: LoQue90 <98092139+LoQue90@users.noreply.github.com> Date: Thu, 14 Mar 2024 18:02:51 +0100 Subject: [PATCH] use mashine state to show weight or weightsetpoint --- src/display/displayTemplateScale.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/display/displayTemplateScale.h b/src/display/displayTemplateScale.h index a5ce1adf..8245f888 100644 --- a/src/display/displayTemplateScale.h +++ b/src/display/displayTemplateScale.h @@ -49,11 +49,11 @@ void printScreen() { u8g2.print("fault"); } else { - if (brewswitch == LOW) { - u8g2.print(weight, 0); + if (machineState == kBrew) { + u8g2.print(weightBrew, 0); } else { - u8g2.print(weightBrew, 0); + u8g2.print(weight, 0); } u8g2.print("/");