1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-24 08:36:14 +01:00

Compare commits

...

5 Commits

Author SHA1 Message Date
Kcsmith0708
600880dacd
Merge 04f0f56348 into a7096e782c 2023-11-20 05:25:23 -07:00
Harald Barth
a7096e782c version 5.2.5 2023-11-20 09:32:22 +01:00
Harald Barth
f935756538 Merge branch 'devel' of https://github.com/DCC-EX/CommandStation-EX into devel 2023-11-20 09:28:02 +01:00
Harald Barth
74d11ccb1e Trackmanager: Do not treat TRACK_MODE_ALL as TRACK_MODE_DC 2023-11-20 09:27:57 +01:00
Kcsmith0708
04f0f56348
Update DCCEXParser.cpp
Correct return when requesting D HAL SHOW
2023-09-24 16:16:59 -04:00
4 changed files with 9 additions and 7 deletions

View File

@ -1168,7 +1168,7 @@ bool DCCEXParser::parseD(Print *stream, int16_t params, int16_t p[])
IODevice::DumpAll();
else if (p[1] == HASH_KEYWORD_RESET)
IODevice::reset();
break;
return true;
#endif
case HASH_KEYWORD_TT: // <D TT vpin steps activity>

View File

@ -1 +1 @@
#define GITHUB_SHA "devel-202311160737Z"
#define GITHUB_SHA "devel-202311200731Z"

View File

@ -472,12 +472,13 @@ std::vector<MotorDriver *>TrackManager::getMainDrivers() {
#endif
// Set track power for all tracks with this mode
void TrackManager::setTrackPower(TRACK_MODE trackmode, POWERMODE powermode) {
void TrackManager::setTrackPower(TRACK_MODE trackmodeToMatch, POWERMODE powermode) {
FOR_EACH_TRACK(t) {
MotorDriver *driver=track[t];
if (trackmode & driver->getMode()) {
MotorDriver *driver=track[t];
TRACK_MODE trackmodeOfTrack = driver->getMode();
if (trackmodeToMatch & trackmodeOfTrack) {
if (powermode == POWERMODE::ON) {
if (trackmode & TRACK_MODE_DC) {
if (trackmodeOfTrack & TRACK_MODE_DC) {
driver->setBrake(true); // DC starts with brake on
applyDCSpeed(t); // speed match DCC throttles
} else {

View File

@ -3,7 +3,8 @@
#include "StringFormatter.h"
#define VERSION "5.2.3"
#define VERSION "5.2.5"
// 5.2.5 - Trackmanager: Do not treat TRACK_MODE_ALL as TRACK_MODE_DC
// 5.2.4 - LCD macro will not do diag if that duplicates @ to same target.
// - Added ROUTE_DISABLED macro in EXRAIL
// 5.2.3 - Bugfix: Catch stange input to parser