Skip to content

Commit

Permalink
Fix compile waring
Browse files Browse the repository at this point in the history
- Move variables that are compiled but may not be used due to macros into the scope of the macros.
RuffaloLavoisier authored and simonmicro committed Jan 14, 2025
1 parent c323002 commit a6ba489
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/apps/tools/OswAppTutorial.cpp
Original file line number Diff line number Diff line change
@@ -153,7 +153,9 @@ void OswAppTutorial::onDraw() {
hal->gfx()->setTextCursor(DISP_W / 2, 120);
hal->gfx()->print(LANG_TUT_SCR3_TEXT);

#if defined(GPS_EDITION) || defined(GPS_EDITION_ROTATED) || defined(OSW_FEATURE_WIFI)
short y = 160;
#endif
bool anyProblems = false;
#ifdef OSW_FEATURE_WIFI
hal->gfx()->setTextCursor(DISP_W / 2, y);

0 comments on commit a6ba489

Please sign in to comment.