From 614af26cd9e768acbffa2cda46d4fba68003225d Mon Sep 17 00:00:00 2001 From: lumapu <lp@lufami.de> Date: Fri, 2 Dec 2022 07:56:48 +0100 Subject: [PATCH] fix #466 --- src/defines.h | 2 +- src/utils/sun.h | 2 +- src/web/html/setup.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/defines.h b/src/defines.h index 68b9c80a..09665137 100644 --- a/src/defines.h +++ b/src/defines.h @@ -13,7 +13,7 @@ //------------------------------------- #define VERSION_MAJOR 0 #define VERSION_MINOR 5 -#define VERSION_PATCH 45 +#define VERSION_PATCH 46 //------------------------------------- typedef struct { diff --git a/src/utils/sun.h b/src/utils/sun.h index 1036f9ec..c6d078d4 100644 --- a/src/utils/sun.h +++ b/src/utils/sun.h @@ -25,7 +25,7 @@ namespace ah { // Declination of the sun double delta = ASIN(SIN(lambda) * SIN(23.44)); // Hour angle - double omega = ACOS((SIN(-0.83) - SIN(lat) * SIN(delta) / COS(lat) * COS(delta))); + double omega = ACOS((SIN(-0.83) - SIN(lat) * SIN(delta)) / (COS(lat) * COS(delta))); // Calculate sunrise and sunset double Jrise = Jtransit - omega / 360; double Jset = Jtransit + omega / 360; diff --git a/src/web/html/setup.html b/src/web/html/setup.html index 0a586849..e5bf96f3 100644 --- a/src/web/html/setup.html +++ b/src/web/html/setup.html @@ -163,7 +163,7 @@ </div> <label for="reboot">Reboot device after successful save</label> - <input type="checkbox" class="cb" name="reboot"/> + <input type="checkbox" class="cb" name="reboot" checked /> <input type="submit" value="save" class="btn right"/><br/> <br/> <a href="/get_setup" target="_blank">Download your settings (JSON file)</a> (only saved values)