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:
parent
16f94ecbdc
commit
9478c3263d
@ -1 +1 @@
|
||||
#define GITHUB_SHA "devel-202305211819Z"
|
||||
#define GITHUB_SHA "devel-202305221431Z"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user