Compilation fix
This commit is contained in:
@@ -580,13 +580,18 @@ void drawReceiverName(coord_t x, coord_t y, uint8_t moduleIdx, uint8_t receiverI
|
|||||||
{
|
{
|
||||||
if (isModulePXX2(moduleIdx)) {
|
if (isModulePXX2(moduleIdx)) {
|
||||||
if (g_model.moduleData[moduleIdx].pxx2.receiverName[receiverIdx][0] != '\0')
|
if (g_model.moduleData[moduleIdx].pxx2.receiverName[receiverIdx][0] != '\0')
|
||||||
lcdDrawSizedText(x, y, g_model.moduleData[moduleIdx].pxx2.receiverName[receiverIdx],
|
lcdDrawSizedText(x, y, g_model.moduleData[moduleIdx].pxx2.receiverName[receiverIdx], effectiveLen(g_model.moduleData[moduleIdx].pxx2.receiverName[receiverIdx], PXX2_LEN_RX_NAME), flags);
|
||||||
effectiveLen(g_model.moduleData[moduleIdx].pxx2.receiverName[receiverIdx], PXX2_LEN_RX_NAME), flags);
|
|
||||||
else
|
else
|
||||||
lcdDrawText(x, y, "---", flags);
|
lcdDrawText(x, y, "---", flags);
|
||||||
}
|
}
|
||||||
else
|
#if defined(HARDWARE_INTERNAL_MODULE)
|
||||||
lcdDrawText(x, y, moduleIdx == INTERNAL_MODULE ? "Internal" : "External", flags);
|
else if (moduleIdx == INTERNAL_MODULE) {
|
||||||
|
lcdDrawText(x, y, "Internal", flags);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
else {
|
||||||
|
lcdDrawText(x, y, "External", flags);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void lcdDrawSolidVerticalLine(coord_t x, scoord_t y, scoord_t h, LcdFlags att)
|
void lcdDrawSolidVerticalLine(coord_t x, scoord_t y, scoord_t h, LcdFlags att)
|
||||||
|
|||||||
Reference in New Issue
Block a user