Fix compiler warnings
parent
02ba077658
commit
3da9c5d7ee
|
|
@ -5,7 +5,7 @@
|
||||||
//
|
//
|
||||||
// Construct node version
|
// 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 compileDate[0x10] = __DATE__;
|
||||||
char compileTime[0x10] = __TIME__;
|
char compileTime[0x10] = __TIME__;
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ public:
|
||||||
virtual void init();
|
virtual void init();
|
||||||
|
|
||||||
const char* getVersion();
|
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 short processRequest(byte* request, byte* sendBuff);
|
||||||
virtual void update(); //update things like keypadstate and rfid
|
virtual void update(); //update things like keypadstate and rfid
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ Reader::Reader()
|
||||||
}
|
}
|
||||||
|
|
||||||
//cmd61 is used to specify behaviour on command 0x61
|
//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 rType[] = {0x03, 0x00, 0x00, 0x00};
|
||||||
byte rVersion[] = {0x01, 0x06, 0x00};
|
byte rVersion[] = {0x01, 0x06, 0x00};
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ class Reader : public Node
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Reader(); //contructor
|
Reader(); //contructor
|
||||||
void setrCode(char* rCode, byte cmd61 = 0);
|
void setrCode(const char* rCode, byte cmd61 = 0);
|
||||||
void init();
|
void init();
|
||||||
void update(); //update things like keypadstate and rfid
|
void update(); //update things like keypadstate and rfid
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -97,3 +97,4 @@ COL C COL B COL A
|
||||||
#define R2_SER Serial2
|
#define R2_SER Serial2
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue