Skip to content

Commit 422c8c9

Browse files
V1.8.44 - Updates
- Fixed compiler define bug when Startup was disabled.
1 parent be0f382 commit 422c8c9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
#define VERSION "V1.8.43"
1+
#define VERSION "V1.8.44"

Software/Arduino code/OpenAstroTracker/src/c72_menuHA_GPS.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,14 @@ bool processHAKeys()
6868
LOGV1(DEBUG_INFO, F("HA: GPS acquired"));
6969
GPS_SERIAL_PORT.end();
7070
haState = SHOWING_HA_SYNC;
71+
#if SUPPORT_GUIDED_STARTUP == 1
7172
if (startupState == StartupWaitForHACompletion)
7273
{
7374
LOGV1(DEBUG_INFO, F("HA: We were in startup, so confirm HA"));
7475
startupState = StartupHAConfirmed;
7576
inStartup = true;
7677
}
78+
#endif
7779
}
7880
}
7981

@@ -114,11 +116,13 @@ bool processHAKeys()
114116
lcdMenu.printMenu("Stored.");
115117
mount.delay(500);
116118
haState = SHOWING_HA_SET;
119+
#if SUPPORT_GUIDED_STARTUP == 1
117120
if (startupState == StartupWaitForHACompletion)
118121
{
119122
startupState = StartupHAConfirmed;
120123
inStartup = true;
121124
}
125+
#endif
122126
}
123127
else if (key == btnUP)
124128
{
@@ -153,12 +157,14 @@ bool processHAKeys()
153157
GPS_SERIAL_PORT.end();
154158
haState = SHOWING_HA_SYNC;
155159
}
160+
#if SUPPORT_GUIDED_STARTUP == 1
156161
else if (startupState == StartupWaitForHACompletion)
157162
{
158163
LOGV1(DEBUG_INFO, F("HA: In Startup, not in GPS Start mode, leaving"));
159164
startupState = StartupHAConfirmed;
160165
inStartup = true;
161166
}
167+
#endif
162168
else
163169
{
164170
LOGV1(DEBUG_INFO, F("HA: leaving HA"));

0 commit comments

Comments
 (0)