Fixed Wrong files getting detected as persons
Added HardwareSerial* as parameter to print person Fixed bug in check for file Added RFID and Finger revoke mechanisms Added user scan Added set user credits Enabled creditsystem
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
#define NUM_OF_PEOPLE 25 // This is (thank myself) not used
|
||||
#define NUM_OF_DRINKS 10
|
||||
#define DRINK_NAME_MAX_LENGTH 13
|
||||
#define FILE_NAME_LEN 8
|
||||
@@ -31,8 +30,10 @@ typedef struct{
|
||||
typedef struct{
|
||||
Drink drinks[NUM_OF_DRINKS];
|
||||
int waiting;
|
||||
int scanning=0;
|
||||
int maxDrink=0;
|
||||
int maxID=0;
|
||||
int personCount=0;
|
||||
}Beerbox;
|
||||
|
||||
//this shall always just exist in a short term!
|
||||
@@ -42,7 +43,7 @@ typedef struct{
|
||||
char name[NAME_LEN + 1];
|
||||
char rfid_uuid[13];
|
||||
uint8_t finger_uuid;
|
||||
uint8_t credits_left;
|
||||
int credits_left;
|
||||
}Person;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user