Added print to rfid and finger; fixed getIndex methods; added drink counts to read; added global person array

This commit is contained in:
2015-09-22 22:51:27 +02:00
parent 4b854998c8
commit e96cf8e996
6 changed files with 36 additions and 176 deletions

View File

@@ -1,9 +1,3 @@
#include <Arduino.h>
#ifndef BEERBOX_IS_INCLUDED
#define BEERBOX_IS_INCLUDED
#define NUM_OF_PEOPLE 25
#define NUM_OF_DRINKS 10
#define DRINK_NAME_MAX_LENGTH 13
@@ -27,7 +21,6 @@ typedef struct{
typedef struct{
Drink drinks[NUM_OF_DRINKS];
int personCount;
}Beerbox;
typedef struct{
@@ -50,4 +43,3 @@ int update_pers_file(Beerbox *box, Person *aperson);
char* read_line_from_file(FILE *stream, char *str, int max_len);
char* read_from_file_until(FILE *stream, char *str, int max_len, char until);
#endif