add free memory command
add read and write nfc commands fix function sending
This commit is contained in:
parent
58fe96f8b7
commit
dca4421674
9 changed files with 115 additions and 31 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue