add free memory command
add read and write nfc commands fix function sending
This commit is contained in:
@ -144,7 +144,7 @@ void Train::sendData(bool single)
|
||||
if(_functionmask & (1 << functionToResend))
|
||||
{
|
||||
_delay_ms(2);
|
||||
sendRaw(packetAddSpeed() | packetAddFunction(functionToResend) | packetAddFunction(0), single);
|
||||
sendRaw(packetAddSpeed() | packetAddFunction(functionToResend) | packetAddFunction(0), false);
|
||||
}
|
||||
_function &= ~0xF0;
|
||||
_function |= functionToResend << 4;
|
||||
@ -174,7 +174,7 @@ uint8_t Train::getFunctionMask()
|
||||
return _functionmask;
|
||||
}
|
||||
|
||||
void Train::sendFunction(const uint8_t function, bool enable)
|
||||
void Train::setFunction(const uint8_t function, bool enable)
|
||||
{
|
||||
if(function > 3)
|
||||
return;
|
||||
|
Reference in New Issue
Block a user