Warnings removed
This commit is contained in:
@@ -748,8 +748,8 @@ typedef uint8_t swarnenable_t;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(PCBHORUS)
|
#if defined(PCBHORUS)
|
||||||
#include "layout.h"
|
#include "gui/horus/layout.h"
|
||||||
#include "topbar.h"
|
#include "gui/horus/topbar.h"
|
||||||
PACK(struct CustomScreenData {
|
PACK(struct CustomScreenData {
|
||||||
char layoutName[10];
|
char layoutName[10];
|
||||||
Layout::PersistentData layoutData;
|
Layout::PersistentData layoutData;
|
||||||
@@ -942,7 +942,7 @@ PACK(struct TrainerData {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(COLORLCD)
|
#if defined(COLORLCD)
|
||||||
#include "theme.h"
|
#include "gui/horus/theme.h"
|
||||||
#define THEME_DATA \
|
#define THEME_DATA \
|
||||||
NOBACKUP(char themeName[8]); \
|
NOBACKUP(char themeName[8]); \
|
||||||
NOBACKUP(Theme::PersistentData themeData);
|
NOBACKUP(Theme::PersistentData themeData);
|
||||||
|
|||||||
@@ -56,14 +56,11 @@ void drawTrims(uint8_t flightMode)
|
|||||||
|
|
||||||
int32_t trim = getTrimValue(flightMode, i);
|
int32_t trim = getTrimValue(flightMode, i);
|
||||||
int32_t val = trim * TRIM_LEN / 125;
|
int32_t val = trim * TRIM_LEN / 125;
|
||||||
bool exttrim = false;
|
|
||||||
if (val < -(TRIM_LEN+1)) {
|
if (val < -(TRIM_LEN+1)) {
|
||||||
val = -(TRIM_LEN+1);
|
val = -(TRIM_LEN+1);
|
||||||
exttrim = true;
|
|
||||||
}
|
}
|
||||||
else if (val > (TRIM_LEN+1)) {
|
else if (val > (TRIM_LEN+1)) {
|
||||||
val = TRIM_LEN+1;
|
val = TRIM_LEN+1;
|
||||||
exttrim = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vert[i]) {
|
if (vert[i]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user