kopia lustrzana https://github.com/OpenRTX/OpenRTX
Suppressed some compiler warnings
rodzic
50b93904c1
commit
7cc4b36907
|
@ -74,6 +74,7 @@
|
|||
#include <hwconfig.h>
|
||||
#include <string.h>
|
||||
#include <battery.h>
|
||||
#include <input.h>
|
||||
|
||||
// Maximum menu entry length
|
||||
#define MAX_ENTRY_LEN 12
|
||||
|
@ -503,6 +504,8 @@ void _ui_drawSettingsTimeDate(state_t* last_state)
|
|||
|
||||
void _ui_drawSettingsTimeDateSet(state_t* last_state)
|
||||
{
|
||||
(void) last_state;
|
||||
|
||||
gfx_clearScreen();
|
||||
// Print "Time&Date" on top bar
|
||||
gfx_print(layout.top_pos, "Time&Date", layout.top_font,
|
||||
|
|
|
@ -35,23 +35,23 @@ PORT_Type *getPortFromGPio(const GPIO_Type *gpio)
|
|||
|
||||
switch(((unsigned int) gpio))
|
||||
{
|
||||
case ((unsigned int) GPIOA):
|
||||
case GPIOA_BASE:
|
||||
port = PORTA;
|
||||
break;
|
||||
|
||||
case ((unsigned int) GPIOB):
|
||||
case GPIOB_BASE:
|
||||
port = PORTB;
|
||||
break;
|
||||
|
||||
case ((unsigned int) GPIOC):
|
||||
case GPIOC_BASE:
|
||||
port = PORTC;
|
||||
break;
|
||||
|
||||
case ((unsigned int) GPIOD):
|
||||
case GPIOD_BASE:
|
||||
port = PORTD;
|
||||
break;
|
||||
|
||||
case ((unsigned int) GPIOE):
|
||||
case GPIOE_BASE:
|
||||
port = PORTE;
|
||||
break;
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue