From 6feda4e217b81784e76f09bd756cf6358ca42a8d Mon Sep 17 00:00:00 2001 From: Asbelos Date: Fri, 2 Oct 2020 17:12:48 +0100 Subject: [PATCH] startup Info on USB (#44) Add status info to CS startup and ash Git SHA for version tracking --- DCC.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/DCC.cpp b/DCC.cpp index 29fa9d7..0c8c322 100644 --- a/DCC.cpp +++ b/DCC.cpp @@ -20,6 +20,8 @@ #include "DCC.h" #include "DCCWaveform.h" #include "DIAG.h" +#include "GITHUB_SHA.h" +#include "version.h" // This module is responsible for converting API calls into @@ -45,6 +47,7 @@ __FlashStringHelper* DCC::shieldName=NULL; void DCC::begin(const __FlashStringHelper* motorShieldName, MotorDriver * mainDriver, MotorDriver* progDriver, byte timerNumber) { shieldName=(__FlashStringHelper*)motorShieldName; + DIAG(F("\n"), F(VERSION), F(ARDUINO_TYPE), shieldName, F(GITHUB_SHA)); DCCWaveform::begin(mainDriver,progDriver, timerNumber); }