get rid of two warnings, the 1st is in fact close to a bug
This commit is contained in:
@@ -101,7 +101,7 @@ inline void lcdSetColor(uint16_t color)
|
|||||||
lcdColorTable[CUSTOM_COLOR_INDEX] = 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 ALARM_COLOR COLOR(ALARM_COLOR_INDEX)
|
||||||
#define BARGRAPH1_COLOR COLOR(BARGRAPH1_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;
|
coord_t x_pos = pageWidth * buttons;// + SELECT_BUTTON_BORDER / 2;
|
||||||
buttons++;
|
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);
|
setInnerWidth(pageWidth * buttons);
|
||||||
|
|
||||||
// y_pos += button->width() + SELECT_BUTTON_BORDER;
|
// y_pos += button->width() + SELECT_BUTTON_BORDER;
|
||||||
|
|||||||
Reference in New Issue
Block a user