Fix compilation errors with newer compiler

main
Nadeflore 2017-01-25 21:38:40 +01:00
parent 80c85ce8c2
commit d44b969b5e
6 changed files with 16 additions and 6 deletions

View File

@ -5,7 +5,9 @@
//contructor //contructor
CardDispenser::CardDispenser(char* rCode) CardDispenser::CardDispenser(char* rCode)
{ {
setVersion((byte[]) {0x04, 0x00, 0x00, 0x01}, 0x00, (byte[]) {0x00, 0x00, 0x07}, rCode); byte rType[] = {0x04, 0x00, 0x00, 0x01};
byte rVersion[] = {0x00, 0x00, 0x07};
setVersion(rType , 0x00, rVersion, rCode);
} }
void CardDispenser::init() void CardDispenser::init()

View File

@ -5,7 +5,9 @@
//contructor //contructor
Ddr::Ddr() Ddr::Ddr()
{ {
setVersion((byte[]) {0x04, 0x02, 0x00, 0x00}, 0x00, (byte[]) {0x01, 0x01, 0x00}, "HDXS"); byte rType[] = {0x04, 0x02, 0x00, 0x00};
byte rVersion[] = {0x01, 0x01, 0x00};
setVersion(rType, 0x00, rVersion, "HDXS");
} }
void Ddr::init() void Ddr::init()

View File

@ -6,7 +6,9 @@ byte lightPin[] = {LT_START, LT_A, LT_B, LT_C, LT_D, LT_FXL, LT_FXR};
//contructor //contructor
IoBoard::IoBoard(char* rCode) IoBoard::IoBoard(char* rCode)
{ {
setVersion((byte[]) {0x09, 0x06, 0x00, 0x00}, 0x00, (byte[]) {0x01, 0x01, 0x00}, rCode); byte rType[] = {0x09, 0x06, 0x00, 0x00};
byte rVersion[] = {0x01, 0x01, 0x00};
setVersion(rType, 0x00, rVersion, rCode);
//pins for pushbuttons //pins for pushbuttons

View File

@ -5,7 +5,9 @@
//contructor //contructor
LedBoard::LedBoard(char* rCode) LedBoard::LedBoard(char* rCode)
{ {
setVersion((byte[]) {0x04, 0x01, 0x00, 0x00}, 0x00, (byte[]) {0x01, 0x00, 0x00}, rCode); byte rType[] = {0x04, 0x01, 0x00, 0x00};
byte rVersion[] = {0x01, 0x00, 0x00};
setVersion(rType, 0x00, rVersion, rCode);
} }
void LedBoard::init() void LedBoard::init()

View File

@ -13,7 +13,9 @@ 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(char* rCode, byte cmd61_s)
{ {
setVersion((byte[]) {0x03, 0x00, 0x00, 0x00}, 0x00, (byte[]) {0x01, 0x06, 0x00}, rCode); byte rType[] = {0x03, 0x00, 0x00, 0x00};
byte rVersion[] = {0x01, 0x06, 0x00};
setVersion(rType, 0x00, rVersion, rCode);
cmd61 = cmd61_s; cmd61 = cmd61_s;
} }

View File

@ -115,7 +115,7 @@ void SL015M::update()
} }
} }
boolean SL015M::isCardPresent() byte SL015M::isCardPresent()
{ {
return card; return card;
} }