From c229826e8b7fd617f705bb49de05d7deb9530e4e Mon Sep 17 00:00:00 2001
From: Mario Engelmann <mario.engelmann@fau.de>
Date: Thu, 13 Oct 2022 16:38:18 +0200
Subject: [PATCH] small adjustments

---
 solarpump/solarpump.ino | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/solarpump/solarpump.ino b/solarpump/solarpump.ino
index f9d4b42..d866a45 100644
--- a/solarpump/solarpump.ino
+++ b/solarpump/solarpump.ino
@@ -170,23 +170,23 @@ void setup(void) {
 	pinMode(BUTTON, INPUT_PULLUP);
 }
 
-void sayInfos(void)
+void sayInfos(float temp1up, float temp1down, float temp2up, float temp2down)
 {
 	playFileQueue(SOUND_EINS);
 	playFileQueue(SOUND_OBEN);
-	sayNumber(t1up_C, nachKommaStellen);
+	sayNumber(temp1up, nachKommaStellen);
 
 	playFileQueue(SOUND_EINS);
 	playFileQueue(SOUND_UNTEN);
-	sayNumber(t1down_C, nachKommaStellen);
+	sayNumber(temp1down, nachKommaStellen);
 
 	playFileQueue(SOUND_ZWEI);
 	playFileQueue(SOUND_OBEN);
-	sayNumber(t2up_C, nachKommaStellen);
+	sayNumber(temp2up, nachKommaStellen);
 
 	playFileQueue(SOUND_ZWEI);
 	playFileQueue(SOUND_UNTEN);
-	sayNumber(t2down_C, nachKommaStellen);
+	sayNumber(temp2down, nachKommaStellen);
 
 	if (digitalRead(PUMP1))
 	{
@@ -233,7 +233,7 @@ void loop(void) {
 
 	if (checkButton() == LOW) {
 		displayLight(true);
-		sayInfos();
+		sayInfos(t1up_C, t1down_C, t2up_C, t2down_C, nachKommaStellen);
 	} else {
 		displayLight(false);
 	}
-- 
GitLab