Enroll working, fixed array sizeof with workaround

This commit is contained in:
2015-09-25 13:19:26 +02:00
parent 9ac2327812
commit 4c18ae050f
5 changed files with 89 additions and 33 deletions

View File

@@ -3,10 +3,22 @@
#define DRINK_NAME_MAX_LENGTH 13
#define FILE_NAME_LEN 8
#define FILE_EXTENSION_LEN 3
#define FILE_EXTENSION "per"
#define FILE_EXTENSION ".per"
#define NAME_LEN 10
//######### RFID CONSTANTS ##########
const int startZeichen = 02; // Chip-Kennung beginnt mit 02
const int endeZeichen = 03; // ASCII CR bendet Code
const int kennungLaenge = 12; // Laenge Chip-Code 10 ASCII-Zeichen
const int gesamtKennungLaenge = 14; // Code-Laenge + Start- und Ende-Byte
char code[kennungLaenge + 1]; // fuer den Code und abschliessende Null
int bytesGelesen = 0;
int zaehlerFehlerCode = 0;
String zugang = "000000000000"; // zugangscode zwischenspeicher, Standard
//#######################
typedef struct{
/*Drink spevifier*/