1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-23 12:51:24 +01:00

Try to find default roster entry

This commit is contained in:
Harald Barth 2023-05-22 16:39:24 +02:00
parent 16f94ecbdc
commit 9478c3263d
2 changed files with 6 additions and 2 deletions

View File

@ -1 +1 @@
#define GITHUB_SHA "devel-202305211819Z"
#define GITHUB_SHA "devel-202305221431Z"

View File

@ -573,7 +573,11 @@ void WiThrottle::sendFunctions(Print* stream, byte loco) {
#ifdef EXRAIL_ACTIVE
const char * functionNames=(char *) RMFT2::getRosterFunctions(locoid);
if (!functionNames) {
// no roster, use non-exrail presets as above
// no roster entry for locoid, try to find default entry
functionNames=(char *) RMFT2::getRosterFunctions(0);
}
if (!functionNames) {
// no default roster entry either, use non-exrail presets as above
}
else if (GETFLASH(functionNames)=='\0') {
// "" = Roster but no functions given