get rid of two warnings, the 1st is in fact close to a bug

This commit is contained in:
olliw42
2021-05-17 10:33:04 +02:00
committed by Raphael Coeffic
parent e66189308e
commit 0939d1bdff
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ inline void lcdSetColor(uint16_t color)
lcdColorTable[CUSTOM_COLOR_INDEX] = color;
}
#define COLOR(index) (lcdColorTable[ unsigned(index) & 0xFF ] << 16u)
#define COLOR(index) ((uint32_t)lcdColorTable[ unsigned(index) & 0xFF ] << 16u)
#define ALARM_COLOR COLOR(ALARM_COLOR_INDEX)
#define BARGRAPH1_COLOR COLOR(BARGRAPH1_COLOR_INDEX)
@@ -40,7 +40,7 @@ void SelectFabCarousel::addButton(uint8_t icon, const char* title,
coord_t x_pos = pageWidth * buttons;// + SELECT_BUTTON_BORDER / 2;
buttons++;
auto button = new SelectFabButton(this, x_pos, y_pos, icon, title, pressHandler);
/*auto button =*/ new SelectFabButton(this, x_pos, y_pos, icon, title, pressHandler);
setInnerWidth(pageWidth * buttons);
// y_pos += button->width() + SELECT_BUTTON_BORDER;