From 1f05ef42d2b2cc69912d308b29f6f8aa969cd484 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Mon, 27 Nov 2023 08:15:07 +0100 Subject: [PATCH] Change from TrackManager::returnMode to TrackManager::getMode --- GITHUB_SHA.h | 2 +- TrackManager.cpp | 2 +- TrackManager.h | 2 +- version.h | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/GITHUB_SHA.h b/GITHUB_SHA.h index 42d5594..23c6a6e 100644 --- a/GITHUB_SHA.h +++ b/GITHUB_SHA.h @@ -1 +1 @@ -#define GITHUB_SHA "devel-202311232114Z" +#define GITHUB_SHA "devel-202311270714Z" diff --git a/TrackManager.cpp b/TrackManager.cpp index 4021240..7d2b36b 100644 --- a/TrackManager.cpp +++ b/TrackManager.cpp @@ -641,7 +641,7 @@ bool TrackManager::isProg(byte t) { return false; } -byte TrackManager::returnMode(byte t) { +TRACK_MODE TrackManager::getMode(byte t) { return (track[t]->getMode()); } diff --git a/TrackManager.h b/TrackManager.h index dd38b72..6310030 100644 --- a/TrackManager.h +++ b/TrackManager.h @@ -92,7 +92,7 @@ class TrackManager { static void streamTrackState(Print* stream, byte t); static bool isPowerOn(byte t); static bool isProg(byte t); - static byte returnMode(byte t); + static TRACK_MODE getMode(byte t); static int16_t returnDCAddr(byte t); static const FSH* getModeName(TRACK_MODE Mode); diff --git a/version.h b/version.h index 3937937..e8a5e81 100644 --- a/version.h +++ b/version.h @@ -3,7 +3,8 @@ #include "StringFormatter.h" -#define VERSION "5.2.10" +#define VERSION "5.2.11" +// 5.2.11 - Change from TrackManager::returnMode to TrackManager::getMode // 5.2.10 - Include trainbrains.eu block unoccupancy driver // - include IO_PCA9555 // 5.2.9 - Bugfix LCD startup with no LCD, uses <@