Cosmetics
This commit is contained in:
+1
-1
@@ -20,5 +20,5 @@ macro(add_truetype_font_target radio name font size bold)
|
|||||||
COMMAND ${RADIO_DIRECTORY}/util/font2png.py ${font} ${size} ${bold} ${target}
|
COMMAND ${RADIO_DIRECTORY}/util/font2png.py ${font} ${size} ${bold} ${target}
|
||||||
WORKING_DIRECTORY ${RADIO_SRC_DIRECTORY}
|
WORKING_DIRECTORY ${RADIO_SRC_DIRECTORY}
|
||||||
)
|
)
|
||||||
set(ttf_horus_fonts_targets ${ttf_horus_fonts_targets} ttf_${radio}_${name})
|
set(ttf_${radio}_fonts_targets ${ttf_${radio}_fonts_targets} ttf_${radio}_${name})
|
||||||
endmacro(add_truetype_font_target)
|
endmacro(add_truetype_font_target)
|
||||||
@@ -1070,7 +1070,9 @@ void LogsDialog::addMaxAltitudeMarker(const coords & c, QCPGraph * graph) {
|
|||||||
tracerMaxAlt->updatePosition();
|
tracerMaxAlt->updatePosition();
|
||||||
}
|
}
|
||||||
|
|
||||||
void LogsDialog::countNumberOfThrows(const coords & c, QCPGraph * graph) {
|
void LogsDialog::countNumberOfThrows(const coords & c, QCPGraph * graph)
|
||||||
|
{
|
||||||
|
#if 0
|
||||||
// find all launches
|
// find all launches
|
||||||
// TODO
|
// TODO
|
||||||
double startTime = c.x.at(0);
|
double startTime = c.x.at(0);
|
||||||
@@ -1079,6 +1081,7 @@ void LogsDialog::countNumberOfThrows(const coords & c, QCPGraph * graph) {
|
|||||||
double alt = c.y.at(i);
|
double alt = c.y.at(i);
|
||||||
double time = c.x.at(i);
|
double time = c.x.at(i);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void LogsDialog::addCursor(QCPItemTracer ** cursor, QCPGraph * graph, const QColor & color) {
|
void LogsDialog::addCursor(QCPItemTracer ** cursor, QCPGraph * graph, const QColor & color) {
|
||||||
|
|||||||
@@ -7,4 +7,5 @@ add_truetype_font_target(horus stdsizebold ${FONT} 16 True)
|
|||||||
add_truetype_font_target(horus midsize ${FONT} 24 False)
|
add_truetype_font_target(horus midsize ${FONT} 24 False)
|
||||||
add_truetype_font_target(horus dblsize ${FONT} 32 True)
|
add_truetype_font_target(horus dblsize ${FONT} 32 True)
|
||||||
add_truetype_font_target(horus xxlsize ${FONT} 48 False)
|
add_truetype_font_target(horus xxlsize ${FONT} 48 False)
|
||||||
|
|
||||||
add_custom_target(ttf_horus_fonts DEPENDS ${ttf_horus_fonts_targets})
|
add_custom_target(ttf_horus_fonts DEPENDS ${ttf_horus_fonts_targets})
|
||||||
|
|||||||
@@ -467,6 +467,12 @@ bool isSourceAvailableInResetSpecialFunction(int index)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(PCBFLAMENCO)
|
||||||
|
bool isModuleAvailable(int module)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
#else
|
||||||
bool isModuleAvailable(int module)
|
bool isModuleAvailable(int module)
|
||||||
{
|
{
|
||||||
#if defined(CROSSFIRE)
|
#if defined(CROSSFIRE)
|
||||||
@@ -476,6 +482,7 @@ bool isModuleAvailable(int module)
|
|||||||
#endif
|
#endif
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
bool isRfProtocolAvailable(int protocol)
|
bool isRfProtocolAvailable(int protocol)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -170,7 +170,7 @@ bool menuCommonCalib(evt_t event)
|
|||||||
// MOVE STICKS/POTS
|
// MOVE STICKS/POTS
|
||||||
lcdDrawText(50, 3, STR_MENUCALIBRATION, MENU_TITLE_COLOR);
|
lcdDrawText(50, 3, STR_MENUCALIBRATION, MENU_TITLE_COLOR);
|
||||||
lcdDrawText(50, 3+FH, STR_MOVESTICKSPOTS, MENU_TITLE_COLOR);
|
lcdDrawText(50, 3+FH, STR_MOVESTICKSPOTS, MENU_TITLE_COLOR);
|
||||||
for (int i=0; i<NUM_STICKS+NUM_POTS+NUM_MOUSE_ANALOGS; i++) {
|
for (uint8_t i=0; i<NUM_STICKS+NUM_POTS+NUM_MOUSE_ANALOGS; i++) {
|
||||||
if (abs(reusableBuffer.calib.loVals[i]-reusableBuffer.calib.hiVals[i]) > 50) {
|
if (abs(reusableBuffer.calib.loVals[i]-reusableBuffer.calib.hiVals[i]) > 50) {
|
||||||
g_eeGeneral.calib[i].mid = reusableBuffer.calib.midVals[i];
|
g_eeGeneral.calib[i].mid = reusableBuffer.calib.midVals[i];
|
||||||
int16_t v = reusableBuffer.calib.midVals[i] - reusableBuffer.calib.loVals[i];
|
int16_t v = reusableBuffer.calib.midVals[i] - reusableBuffer.calib.loVals[i];
|
||||||
|
|||||||
Reference in New Issue
Block a user