Version 0.3.15. Back to real sensors. During cooling the target temperature is changed in 0.5 degrees steps instead of whole degrees.

Tue, 22 Jun 2021 23:06:41 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Tue, 22 Jun 2021 23:06:41 +0200
changeset 104
03c38ad63e8c
parent 103
1885d0c75c48
child 105
9e00845dc1ee

Version 0.3.15. Back to real sensors. During cooling the target temperature is changed in 0.5 degrees steps instead of whole degrees.

CMakeLists.txt file | annotate | diff | comparison | revisions
main/automation.c file | annotate | diff | comparison | revisions
sdkconfig file | annotate | diff | comparison | revisions
--- a/CMakeLists.txt	Tue Jun 22 22:21:09 2021 +0200
+++ b/CMakeLists.txt	Tue Jun 22 23:06:41 2021 +0200
@@ -2,7 +2,7 @@
 # in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.5)
 
-set(PROJECT_VER "0.3.14")
+set(PROJECT_VER "0.3.15")
 set(PROJECT_NAME "brewboard")
 
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
--- a/main/automation.c	Tue Jun 22 22:21:09 2021 +0200
+++ b/main/automation.c	Tue Jun 22 23:06:41 2021 +0200
@@ -1181,14 +1181,14 @@
 			MLT_info(71, 26, false);
 			Buttons_Add(  5, 200, 60, 40, (char *)"Stop", 0);
 			Buttons[0].dark = true;
-			Buttons_Add(  5,  26, 60, 40, (char *)"+1",   1);
-			Buttons_Add(255,  26, 60, 40, (char *)"-1",   2);
+			Buttons_Add(  5,  26, 60, 40, (char *)"+0.5",   1);
+			Buttons_Add(255,  26, 60, 40, (char *)"-0.5",   2);
 			/*
 			 * The next key is not a mistake, but we need a key entry which
 			 * will later become the pump key. The keyscan routine will find
 			 * the original key if pressed.
 			 */
-			Buttons_Add(255,  26, 60, 40, (char *)"-1",   3);
+			Buttons_Add(255,  26, 60, 40, (char *)"-0.5",   3);
 			Buttons_Show();
 		    }
 		} else {
@@ -1228,13 +1228,13 @@
                     	case 1:	if (xSemaphoreTake(xSemaphoreDriver, 10) == pdTRUE) {
                                     if (Main_Screen == MAIN_AUTO_COOLING_H) {
                                         if (driver_state->mlt_sp < 77.0)
-                                            driver_state->mlt_sp += 1.0;
+                                            driver_state->mlt_sp += 0.5;
                                     } else if (Main_Screen == MAIN_AUTO_COOLING_M) {
                                         if (driver_state->mlt_sp < 66.0)
-                                            driver_state->mlt_sp += 1.0;
+                                            driver_state->mlt_sp += 0.5;
                                     } else if (Main_Screen == MAIN_AUTO_COOLING_C) {
                                         if (driver_state->mlt_sp < 45.0)
-                                            driver_state->mlt_sp += 1.0;
+                                            driver_state->mlt_sp += 0.5;
                                     }
                                     xSemaphoreGive(xSemaphoreDriver);
                                 }
@@ -1250,13 +1250,13 @@
                     	case 2: if (xSemaphoreTake(xSemaphoreDriver, 10) == pdTRUE) {
                                     if (Main_Screen == MAIN_AUTO_COOLING_H) {
                                         if (driver_state->mlt_sp > 71.0)
-                                            driver_state->mlt_sp -= 1.0;
+                                            driver_state->mlt_sp -= 0.5;
                                     } else if (Main_Screen == MAIN_AUTO_COOLING_M) {
                                         if (driver_state->mlt_sp > 60.0)
-                                            driver_state->mlt_sp -= 1.0;
+                                            driver_state->mlt_sp -= 0.5;
                                     } else if (Main_Screen == MAIN_AUTO_COOLING_C) {
                                         if (driver_state->mlt_sp > 10.0)
-                                            driver_state->mlt_sp -= 1.0;
+                                            driver_state->mlt_sp -= 0.5;
                                     }
                                     xSemaphoreGive(xSemaphoreDriver);
                                 }
--- a/sdkconfig	Tue Jun 22 22:21:09 2021 +0200
+++ b/sdkconfig	Tue Jun 22 23:06:41 2021 +0200
@@ -121,8 +121,10 @@
 #
 # BrewBoard Configuration
 #
-# CONFIG_TEMP_SENSORS_ONEWIRE is not set
-CONFIG_TEMP_SENSORS_SIMULATOR=y
+CONFIG_TEMP_SENSORS_ONEWIRE=y
+# CONFIG_TEMP_SENSORS_SIMULATOR is not set
+CONFIG_ONE_WIRE_MLT=27
+CONFIG_ONE_WIRE_HLT=26
 CONFIG_SSR_MLT_GPIO=32
 CONFIG_PWM_MLT_GPIO=0
 CONFIG_SSR_HLT_GPIO=33

mercurial