From 64057258b97f31869e035c7eeb83892d169dda68 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Sat, 8 Feb 2025 22:41:27 +0000 Subject: [PATCH] Fix bug where calendar does not display if only one person home --- NewDisplayDriver/esphub/esphub.ino | 2 +- NewDisplayDriver/esphub/helper_fn.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NewDisplayDriver/esphub/esphub.ino b/NewDisplayDriver/esphub/esphub.ino index 4757c08..73dacbf 100644 --- a/NewDisplayDriver/esphub/esphub.ino +++ b/NewDisplayDriver/esphub/esphub.ino @@ -141,7 +141,7 @@ void loop() { display.setFullWindow(); // Set Full Update Mode if (!activeFeatures.network || - (activeFeatures.homeassistant && haAnybodyHome() < 1)) { + (activeFeatures.homeassistant && haAnybodyHome() < 0)) { displayFullScreenArt(); // Show artwork if no network or nobody is home } else { struct tm timeinfo; diff --git a/NewDisplayDriver/esphub/helper_fn.cpp b/NewDisplayDriver/esphub/helper_fn.cpp index 44f55ea..db06fe5 100644 --- a/NewDisplayDriver/esphub/helper_fn.cpp +++ b/NewDisplayDriver/esphub/helper_fn.cpp @@ -61,7 +61,8 @@ NotableDay notableDays[] = { // Max characters in a notable day is 39 characters {12, 9, {"International Anti-Corruption Day"}}, {12, 10, {"Human Rights Day"}}, {12, 11, {"International Mountain Day"}}, - {12, 12, {"Internation Day of Neutrality"}}, + {12, 12, {"International Day of Neutrality"}}, + {12, 13, {"National Cocoa Day"}}, {12, 18, {"Arabic Language Day", "International Migrants Day"}}, {12, 20, {"International Human Solidarity Day"}}, {12, 21, {"Abolishion of Slavery Day"}},