diff --git a/examples/DCCEXProtocol_Roster_etc/DCCEXProtocol_Roster_etc.ino b/examples/DCCEXProtocol_Roster_etc/DCCEXProtocol_Roster_etc.ino index 388a86a..33b9e31 100644 --- a/examples/DCCEXProtocol_Roster_etc/DCCEXProtocol_Roster_etc.ino +++ b/examples/DCCEXProtocol_Roster_etc/DCCEXProtocol_Roster_etc.ino @@ -81,6 +81,17 @@ void printRoster() { Serial.print(" ~"); Serial.print(name); Serial.println("~"); + for (int i=0; i<32; i++) { + char* fName = loco->getFunctionName(i); + if (fName != nullptr) { + Serial.print("loadFunctionLabels() "); + Serial.print(fName); + if (loco->isFunctionMomentary(i)) { + Serial.print(" - Momentary"); + } + Serial.println(); + } + } } Serial.println("\n"); } diff --git a/library.properties b/library.properties index 27ed2f1..0ab693a 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=DCCEXProtocol -version=0.0.6 +version=0.0.7 author=Peter Cole, Peter Akers maintainer=Peter Cole, Peter Akers sentence=DCC-EX Native Protocol implementation diff --git a/src/DCCEXLoco.cpp b/src/DCCEXLoco.cpp index cc2c750..fba02f8 100644 --- a/src/DCCEXLoco.cpp +++ b/src/DCCEXLoco.cpp @@ -121,7 +121,7 @@ void Loco::setupFunctions(char *functionNames) { if (momentary) { _momentaryFlags |= 1<