Compilation fixes
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user