Suppressed some compiler warnings

replace/0ada5d4c02570ced7c8f41ea056aa330bbd92b53
Silvano Seva 2021-01-01 17:31:42 +01:00
rodzic 50b93904c1
commit 7cc4b36907
2 zmienionych plików z 8 dodań i 5 usunięć

Wyświetl plik

@ -74,6 +74,7 @@
#include <hwconfig.h> #include <hwconfig.h>
#include <string.h> #include <string.h>
#include <battery.h> #include <battery.h>
#include <input.h>
// Maximum menu entry length // Maximum menu entry length
#define MAX_ENTRY_LEN 12 #define MAX_ENTRY_LEN 12
@ -503,6 +504,8 @@ void _ui_drawSettingsTimeDate(state_t* last_state)
void _ui_drawSettingsTimeDateSet(state_t* last_state) void _ui_drawSettingsTimeDateSet(state_t* last_state)
{ {
(void) last_state;
gfx_clearScreen(); gfx_clearScreen();
// Print "Time&Date" on top bar // Print "Time&Date" on top bar
gfx_print(layout.top_pos, "Time&Date", layout.top_font, gfx_print(layout.top_pos, "Time&Date", layout.top_font,

Wyświetl plik

@ -35,23 +35,23 @@ PORT_Type *getPortFromGPio(const GPIO_Type *gpio)
switch(((unsigned int) gpio)) switch(((unsigned int) gpio))
{ {
case ((unsigned int) GPIOA): case GPIOA_BASE:
port = PORTA; port = PORTA;
break; break;
case ((unsigned int) GPIOB): case GPIOB_BASE:
port = PORTB; port = PORTB;
break; break;
case ((unsigned int) GPIOC): case GPIOC_BASE:
port = PORTC; port = PORTC;
break; break;
case ((unsigned int) GPIOD): case GPIOD_BASE:
port = PORTD; port = PORTD;
break; break;
case ((unsigned int) GPIOE): case GPIOE_BASE:
port = PORTE; port = PORTE;
break; break;