diff --git a/acrealio/Node.cpp b/acrealio/Node.cpp index 5aed57d..8856392 100644 --- a/acrealio/Node.cpp +++ b/acrealio/Node.cpp @@ -5,7 +5,7 @@ // // Construct node version // -void Node::setVersion(byte* rType, byte rFlag, byte* rVersion, char* rCode) +void Node::setVersion(byte* rType, byte rFlag, byte* rVersion, const char* rCode) { char compileDate[0x10] = __DATE__; char compileTime[0x10] = __TIME__; diff --git a/acrealio/Node.h b/acrealio/Node.h index 3ea3a89..91f34a2 100644 --- a/acrealio/Node.h +++ b/acrealio/Node.h @@ -10,7 +10,7 @@ public: virtual void init(); const char* getVersion(); - void setVersion(byte* rType, byte rFlag, byte* rVersion, char* rCode); + void setVersion(byte* rType, byte rFlag, byte* rVersion, const char* rCode); virtual short processRequest(byte* request, byte* sendBuff); virtual void update(); //update things like keypadstate and rfid diff --git a/acrealio/Reader.cpp b/acrealio/Reader.cpp index d40186f..51edbdf 100644 --- a/acrealio/Reader.cpp +++ b/acrealio/Reader.cpp @@ -11,7 +11,7 @@ Reader::Reader() } //cmd61 is used to specify behaviour on command 0x61 -void Reader::setrCode(char* rCode, byte cmd61_s) +void Reader::setrCode(const char* rCode, byte cmd61_s) { byte rType[] = {0x03, 0x00, 0x00, 0x00}; byte rVersion[] = {0x01, 0x06, 0x00}; diff --git a/acrealio/Reader.h b/acrealio/Reader.h index b333939..712d018 100644 --- a/acrealio/Reader.h +++ b/acrealio/Reader.h @@ -10,7 +10,7 @@ class Reader : public Node { public: Reader(); //contructor - void setrCode(char* rCode, byte cmd61 = 0); + void setrCode(const char* rCode, byte cmd61 = 0); void init(); void update(); //update things like keypadstate and rfid diff --git a/acrealio/pinoutconfig.h b/acrealio/pinoutconfig.h index 7b7c272..b9829da 100644 --- a/acrealio/pinoutconfig.h +++ b/acrealio/pinoutconfig.h @@ -54,7 +54,7 @@ //pins for card reader 1 keypad (colls ABC, rows 1234) -/* +/* ### Keypad 3x4 Matrix ### (7)---(8)---(9)---> ROW 4 @@ -79,7 +79,7 @@ COL C COL B COL A //pins for card reader 1 RFID Module -#define R1_DET 20 +#define R1_DET 20 #define R1_SER Serial1 //pins for card reader 2 keypad (colls ABC, rows 1234) @@ -97,3 +97,4 @@ COL C COL B COL A #define R2_SER Serial2 #endif +