From 7de46a0c17d4ccc1aef40af5b55aee14ddf47dc4 Mon Sep 17 00:00:00 2001 From: Neil McKechnie Date: Thu, 9 Feb 2023 00:16:39 +0000 Subject: [PATCH] Add command to attempt to reset failed devices. --- DCCEXParser.cpp | 2 ++ version.h | 1 + 2 files changed, 3 insertions(+) diff --git a/DCCEXParser.cpp b/DCCEXParser.cpp index 478b1f8..c7d23e9 100644 --- a/DCCEXParser.cpp +++ b/DCCEXParser.cpp @@ -948,6 +948,8 @@ bool DCCEXParser::parseD(Print *stream, int16_t params, int16_t p[]) case HASH_KEYWORD_HAL: if (p[1] == HASH_KEYWORD_SHOW) IODevice::DumpAll(); + else if (p[1] == HASH_KEYWORD_RESET) + IODevice::reset(); break; #endif diff --git a/version.h b/version.h index d6ad661..0a263b7 100644 --- a/version.h +++ b/version.h @@ -19,6 +19,7 @@ // (2) animations of servo movement via PCA9685pwm. // This is intended to support EXIOExpander and also // replace the existing PCA9685 driver. +// Add to reinitialise failed drivers. // 4.2.14 STM32F4xx fast ADC read implementation // 4.2.13 Broadcast power for again // 4.2.12 Bugfix for issue #299 TurnoutDescription NULL