mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 16:55:20 +03:00
Minor build fixes (#4142)
* [480x272] Fix compiler warnings with awkward extern define in layout.h.
* [firmware][misc] Fix build error with undefined SPLASH; Fix 128x64 syntax error in model_setup.cpp; Fix compiler warning on static init in diskio.cpp.
* [480x272] Revert "Fix compiler warnings with awkward extern define in layout.h." and modify lcd::drawSource() to use mixsrc_t for consistency.
This reverts commit d85d994c87
.
* [firmware] Cleanup struct init in diskio modules.
This commit is contained in:
parent
143f5ce05e
commit
a2e37c5dbc
6 changed files with 6 additions and 6 deletions
|
@ -1175,7 +1175,7 @@ void menuModelFailsafe(event_t event)
|
|||
#if defined(PPM_UNIT_PERCENT_PREC1)
|
||||
uint8_t wbar = SLIDER_W-6;
|
||||
#else
|
||||
uint8_t wbar = SLIDER_W);
|
||||
uint8_t wbar = SLIDER_W;
|
||||
#endif
|
||||
|
||||
uint8_t xValue = x+LCD_W-4-wbar;
|
||||
|
|
|
@ -238,7 +238,7 @@ void putsStickName(coord_t x, coord_t y, uint8_t idx, LcdFlags att)
|
|||
lcdDrawSizedText(x, y, STR_VSRCRAW+2+length*(idx+1), length-1, att);
|
||||
}
|
||||
|
||||
void drawSource(coord_t x, coord_t y, uint32_t idx, LcdFlags flags)
|
||||
void drawSource(coord_t x, coord_t y, mixsrc_t idx, LcdFlags flags)
|
||||
{
|
||||
char s[16];
|
||||
getSourceString(s, idx);
|
||||
|
|
|
@ -134,7 +134,7 @@ void lcdDrawNumber(coord_t x, coord_t y, int32_t val, LcdFlags flags=0, uint8_t
|
|||
void putsModelName(coord_t x, coord_t y, char *name, uint8_t id, LcdFlags att);
|
||||
void putsStickName(coord_t x, coord_t y, uint8_t idx, LcdFlags att=0);
|
||||
void drawSwitch(coord_t x, coord_t y, swsrc_t swtch, LcdFlags flags=0);
|
||||
void drawSource(coord_t x, coord_t y, uint32_t idx, LcdFlags att=0);
|
||||
void drawSource(coord_t x, coord_t y, mixsrc_t idx, LcdFlags att=0);
|
||||
void drawCurveName(coord_t x, coord_t y, int8_t idx, LcdFlags att=0);
|
||||
void drawTimerMode(coord_t x, coord_t y, int32_t mode, LcdFlags att=0);
|
||||
void drawTrimMode(coord_t x, coord_t y, uint8_t phase, uint8_t idx, LcdFlags att);
|
||||
|
|
|
@ -2572,7 +2572,7 @@ int main()
|
|||
// lcdSetRefVolt(25);
|
||||
#endif
|
||||
|
||||
#if defined(PCBTARANIS) || defined(PCBHORUS)
|
||||
#if defined(SPLASH) && (defined(PCBTARANIS) || defined(PCBHORUS))
|
||||
drawSplash();
|
||||
#endif
|
||||
|
||||
|
|
|
@ -310,7 +310,7 @@ DRESULT disk_ioctl (
|
|||
|
||||
FATFS g_FATFS_Obj __DMA;
|
||||
#if defined(LOG_TELEMETRY)
|
||||
FIL g_telemetryFile = {0};
|
||||
FIL g_telemetryFile = {};
|
||||
#endif
|
||||
|
||||
void sdInit()
|
||||
|
|
|
@ -978,7 +978,7 @@ void sdPoll10ms()
|
|||
|
||||
FATFS g_FATFS_Obj;
|
||||
#if defined(LOG_TELEMETRY)
|
||||
FIL g_telemetryFile = {0};
|
||||
FIL g_telemetryFile = {};
|
||||
#endif
|
||||
|
||||
#if defined(BOOT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue