Fixed compiler warning in tft and screen module.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#include "screen.h"
|
||||
|
||||
|
||||
static volatile SCREEN_STRUCT* screen_list = NULL;
|
||||
static volatile SCREEN_STRUCT* screen_current = NULL;
|
||||
static SCREEN_STRUCT* screen_list = NULL;
|
||||
static SCREEN_STRUCT* screen_current = NULL;
|
||||
static volatile SCREEN_STRUCT* screen_goto = NULL;
|
||||
|
||||
SCREEN_STRUCT* gui_screen_get_current() {
|
||||
@@ -11,7 +11,7 @@ SCREEN_STRUCT* gui_screen_get_current() {
|
||||
|
||||
void gui_screen_update() {
|
||||
if(screen_goto!=NULL) { //we received the task to switch the screen
|
||||
SCREEN_STRUCT* go = screen_goto; //Backup volatile variable
|
||||
SCREEN_STRUCT* go = (SCREEN_STRUCT*) screen_goto; //Backup volatile variable
|
||||
screen_goto=NULL;
|
||||
if(go->next!=NULL) { //we're going back
|
||||
if(go->next!=screen_current) return; //list corrupted?
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include "ll_tft.h"
|
||||
#include <string.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
|
||||
bool tft_init() {
|
||||
return ll_tft_init();
|
||||
|
||||
Reference in New Issue
Block a user