Skip to content

Commit 0317288

Browse files
fix if HEADLESS_CLIENT=0
1 parent 8d3e727 commit 0317288

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ class LcdButtons {
179179
private:
180180
void checkKey() {
181181

182+
#if HEADLESS_CLIENT == 0
182183
#if I2C_DISPLAY == 1
183184
uint8_t buttons = _lcdMenu->readButtons();
184185
_currentKey = btnNONE;
@@ -210,6 +211,7 @@ class LcdButtons {
210211
_newKey = _currentKey;
211212
}
212213
}
214+
#endif
213215
}
214216

215217
private:

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,10 @@ void setup() {
185185
void finishSetup()
186186
{
187187
// Calling the LCD startup here, I2C can't be found if called earlier
188-
lcdMenu.startup();
189-
188+
#if HEADLESS_CLIENT == 0
189+
lcdMenu.startup();
190+
#endif
191+
190192
LOGV1(DEBUG_ANY, F("Finishing setup..."));
191193
// Show a splash screen
192194
lcdMenu.setCursor(0, 0);

0 commit comments

Comments
 (0)