Warnings removed

This commit is contained in:
Bertrand Songis
2016-03-05 08:53:16 +01:00
parent ad33bff31c
commit 15912854e8
2 changed files with 3 additions and 6 deletions
+3 -3
View File
@@ -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);
-3
View File
@@ -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]) {