From e7efa2d9574b5127abb365404a6cbbbd9e521018 Mon Sep 17 00:00:00 2001 From: anschrammh Date: Sat, 16 Mar 2019 19:48:31 +0100 Subject: [PATCH] Added defines --- src/app/definition.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/definition.h b/src/app/definition.h index f6af74f..821f006 100644 --- a/src/app/definition.h +++ b/src/app/definition.h @@ -32,6 +32,7 @@ typedef enum { GPIO_0 = 0, #define NO_CURRENT_VIEW NULL #define LAST_VIEW -1 +#define RESERVED_VIEW_UID -2 #define BATT_FULL 870 //8.4v #define BATT_EMPTY 775 //7.4v @@ -46,11 +47,10 @@ typedef enum { BATTERY = 0, USB } PowerType; //Data structure for the view handling typedef struct viewLink{ - boolean (*viewLogicFunction)(Adafruit_SSD1306&, void*); - void *pData; - const unsigned char UID; - - struct viewLink *next; + boolean (*viewLogicFunction)(Adafruit_SSD1306&, void*); + void *pData; + const int UID; + struct viewLink *next; } ViewLink, *ViewLinkedList; //Data structure for the battery info