add free memory command

add read and write nfc commands
fix function sending
This commit is contained in:
2022-03-25 13:41:02 +01:00
parent 58fe96f8b7
commit dca4421674
9 changed files with 115 additions and 31 deletions

View File

@ -103,7 +103,7 @@ int trainDispatch(char* inBuffer, Serial* serial)
{
uint8_t functionId = atoi(token);
bool on = (strcmp(boolToken, "on") == 0);
trains[id].sendFunction(functionId, on );
trains[id].setFunction(functionId, on );
serial->write_p(PSTR("Set Train function "));
serial->write(functionId);
serial->write(on ? " on\n" : " off\n");