compiler warnings
This commit is contained in:
parent
ccdc62c334
commit
8d7a588c51
1 changed files with 6 additions and 3 deletions
|
@ -89,7 +89,7 @@ static inline void buttonUpdate(struct guiNode_t *node) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void sliderUpdate(struct guiNode_t *node) {
|
static inline void sliderUpdate(struct guiNode_t *node) {
|
||||||
uint16_t length;
|
uint16_t length = 1;
|
||||||
|
|
||||||
if(node->orientation == horizontal)
|
if(node->orientation == horizontal)
|
||||||
length = node->x1 - node->x0;
|
length = node->x1 - node->x0;
|
||||||
|
@ -113,8 +113,6 @@ static inline void sliderUpdate(struct guiNode_t *node) {
|
||||||
// a bit of safety here
|
// a bit of safety here
|
||||||
if(node->percentage > 100)
|
if(node->percentage > 100)
|
||||||
node->percentage = 100;
|
node->percentage = 100;
|
||||||
if(node->percentage < 0)
|
|
||||||
node->percentage = 0;
|
|
||||||
|
|
||||||
if(node->orientation == horizontal) {
|
if(node->orientation == horizontal) {
|
||||||
node->value = ((((node->x1)-(node->x0)) * node->percentage) / 100);
|
node->value = ((((node->x1)-(node->x0)) * node->percentage) / 100);
|
||||||
|
@ -303,6 +301,11 @@ uint8_t guiDrawKeymatrix(uint16_t x0, uint16_t y0, uint16_t size, uint16_t space
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
// lcdDraw functions
|
// lcdDraw functions
|
||||||
|
(void)size;
|
||||||
|
(void)space;
|
||||||
|
(void)buttonColor;
|
||||||
|
(void)fontColor;
|
||||||
|
(void)font;
|
||||||
|
|
||||||
chHeapFree(newNode);
|
chHeapFree(newNode);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue