Compilation fixes

This commit is contained in:
Damjan Adamic
2016-08-30 21:55:09 +02:00
parent ff37274e64
commit 590b0eaab7
2 changed files with 8 additions and 3 deletions
+7 -2
View File
@@ -75,10 +75,15 @@ void ValueWidget::refresh()
yValue = y+18;
xLabel = x+NUMBERS_PADDING;
yLabel = y+2;
if (field == MIXSRC_TX_GPS)
#if defined(INTERNAL_GPS)
if (field == MIXSRC_TX_GPS) {
attrValue = LEFT | MIDSIZE;
else
}
else
#endif
{
attrValue = LEFT | DBLSIZE;
}
}
if (field >= MIXSRC_FIRST_TIMER && field <= MIXSRC_LAST_TIMER) {
+1 -1
View File
@@ -54,12 +54,12 @@ set(GUI_SRC
${LAYOUTS_SRC}
${WIDGETS_SRC}
)
set(SRC ${SRC} gps.cpp)
if(DISK_CACHE)
set(SRC ${SRC} disk_cache.cpp)
add_definitions(-DDISK_CACHE)
endif()
if(INTERNAL_GPS)
set(SRC ${SRC} gps.cpp)
add_definitions(-DINTERNAL_GPS)
message("Internal GPS enabled")
endif()