From 18ab2b3ab5b6b035ba64a129433f41355b92ef78 Mon Sep 17 00:00:00 2001 From: garyd9 Date: Fri, 7 Aug 2020 15:21:45 -0400 Subject: [PATCH] #if0 out a debug block that can be used to validate the sunrise/sunset times. --- usermods/UserModv2_SunRiseAndSet/UserMod_SunRiseAndSet.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usermods/UserModv2_SunRiseAndSet/UserMod_SunRiseAndSet.h b/usermods/UserModv2_SunRiseAndSet/UserMod_SunRiseAndSet.h index 623b4bb4..f1d44889 100644 --- a/usermods/UserModv2_SunRiseAndSet/UserMod_SunRiseAndSet.h +++ b/usermods/UserModv2_SunRiseAndSet/UserMod_SunRiseAndSet.h @@ -110,7 +110,7 @@ public: m_nUserSunset = m_pD2D->sunset(tmNow.Year + 1970, tmNow.Month, tmNow.Day, false); } } - +#if 0 { // debug block.. // for debugging, convert everything to "local" time @@ -122,7 +122,7 @@ public: Serial.printf("NEXT SUNRISE: %d:%d\n", srMin / 60, srMin % 60); Serial.printf("NEXT SUNSET: %d:%d\n", ssMin / 60, ssMin % 60); } // end debug block - +#endif // offset by user provided values. becuase the offsets are signed bytes, the max offset is just over 2 hours. m_nUserSunrise += m_sunriseOffset; m_nUserSunset += m_sunsetOffset;