Bi-monthly release with minor bug fixes and improvements
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
// Get local time epoch in UNIX seconds
time_epoch = mktime(<m);
--- lx200_OnStep.cpp.bak 2022-03-22 09:15:28.455583393 +0900
+++ lx200_OnStep.cpp 2022-03-22 09:15:00.531800080 +0900
@@ -4750,6 +4750,9 @@
struct tm utm;
time_t time_epoch;
+ memset(<m, 0, sizeof(ltm));
+ memset(&utm, 0, sizeof(utm));
+
double offset = 0;
if (getUTFOffset(&offset))
{
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
-------------------- drivers/telescope/ioptronHC8406.cpp ---------------------
index 2626278d1..ca37ce08a 100644
@@ -1156,6 +1156,9 @@ bool ioptronHC8406::sendScopeTime()
struct tm ltm;
struct tm utm;
time_t time_epoch;
+
+ memset(<m, 0, sizeof(ltm));
+ memset(&utm, 0, sizeof(utm));
if (isSimulation())
{
---------------------- drivers/telescope/lx200_OnStep.cpp ----------------------
index 425d0f6ab..7bd1b4264 100644
@@ -4749,6 +4749,9 @@ bool LX200_OnStep::sendScopeTime()
struct tm ltm;
struct tm utm;
time_t time_epoch;
+
+ memset(<m, 0, sizeof(ltm));
+ memset(&utm, 0, sizeof(utm));
double offset = 0;
if (getUTFOffset(&offset))
-------------------- drivers/telescope/lx200_TeenAstro.cpp --------------------
index 548ad1660..325785aab 100644
@@ -888,6 +888,9 @@ bool LX200_TeenAstro::sendScopeTime()
struct tm ltm;
struct tm utm;
time_t time_epoch;
+
+ memset(<m, 0, sizeof(ltm));
+ memset(&utm, 0, sizeof(utm));
double offset = 0;
---------------------- drivers/telescope/lx200pulsar2.cpp ----------------------
index ea2c29211..062c7c664 100644
@@ -3362,6 +3362,11 @@ bool LX200Pulsar2::storeScopeLocation()
bool LX200Pulsar2::sendScopeTime()
{
struct tm ltm;
+ struct tm utm;
+
+ memset(<m, 0, sizeof(ltm));
+ memset(&utm, 0, sizeof(utm));
+
if (isSimulation())
{
const time_t t = time(nullptr);
@@ -3380,7 +3385,7 @@ bool LX200Pulsar2::sendScopeTime()
// Get time epoch and convert to TimeT
const time_t time_epoch = mktime(<m);
- struct tm utm;
+
localtime_r(&time_epoch, &utm);
// Format it into ISO 8601
--------------------- drivers/telescope/lx200telescope.cpp ---------------------
index 786aeca4c..26b202276 100644
@@ -1315,6 +1315,9 @@ bool LX200Telescope::sendScopeTime()
struct tm ltm;
struct tm utm;
time_t time_epoch;
+
+ memset(<m, 0, sizeof(ltm));
+ memset(&utm, 0, sizeof(utm));
double offset = 0;
if (getUTFOffset(&offset))
------------------------ drivers/telescope/rainbow.cpp ------------------------
index 0c68f6b39..2456f88ef 100644
@@ -1516,6 +1516,9 @@ bool Rainbow::sendScopeTime()
struct tm ltm;
struct tm utm;
time_t time_epoch;
+
+ memset(<m, 0, sizeof(ltm));
+ memset(&utm, 0, sizeof(utm));
double offset = 0;
if (getUTFOffset(&offset))
------------------------------- tools/evalINDI.c -------------------------------
index d77395033..730518f27 100644
@@ -507,6 +507,8 @@ static int pstatestr(char *state)
static time_t timestampINDI(char *ts)
{
struct tm tm;
+
+ memset(&tm, 0, sizeof(tm));
if (6 == sscanf(ts, "%d-%d-%dT%d:%d:%d", &tm.tm_year, &tm.tm_mon, &tm.tm_mday, &tm.tm_hour, &tm.tm_min, &tm.tm_sec))
{
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.