From 3fe725e0d25230d92e2a414360eb5a4ad3582181 Mon Sep 17 00:00:00 2001
From: Mario Engelmann <mario.engelmann@fau.de>
Date: Thu, 13 Oct 2022 16:18:42 +0200
Subject: [PATCH] very important stuff

---
 solarpump/solarpump.ino | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)

diff --git a/solarpump/solarpump.ino b/solarpump/solarpump.ino
index bf814fa..ab21cf5 100644
--- a/solarpump/solarpump.ino
+++ b/solarpump/solarpump.ino
@@ -151,7 +151,6 @@ void displayLight(bool turnOn) {
 	}
 }
 
-
 /*
  * main setup function
  * initialize every electronic component 
@@ -182,14 +181,27 @@ void loop(void) {
 	static float t1down_C = 0.0;
 	static float t2up_C = 0.0;
 	static float t2down_C = 0.0;
+	static int nachKommaStellen = 1;
 
 	mp3Loop();
 
 	if (checkButton() == LOW) {
 		displayLight(true);
-		playFileQueue(SOUND_TEMPERATURE);
-		playFileQueue(SOUND_HOCHSTER_WERT);
-		playFileQueue(SOUND_KOMMA);
+		playFileQueue(SOUND_EINS)
+		playFileQueue(SOUND_OBEN);
+		sayNumber(t1up_C, nachKommaStellen);
+
+		playFileQueue(SOUND_EINS)
+		playFileQueue(SOUND_UNTEN);
+		sayNumber(t1up_C, nachKommaStellen);
+
+		playFileQueue(SOUND_EINS)
+			playFileQueue(SOUND_OBEN);
+		sayNumber(t1up_C, nachKommaStellen);
+
+		playFileQueue(SOUND_EINS)
+			playFileQueue(SOUND_OBEN);
+		sayNumber(t1up_C, nachKommaStellen);
 	} else {
 		displayLight(false);
 	}
-- 
GitLab