From 47eb7889d005f8c4f76f384cd8ec15a835f24122 Mon Sep 17 00:00:00 2001 From: anschrammh Date: Mon, 19 Aug 2019 13:53:57 +0200 Subject: [PATCH] Added getSoftVersion method to get the current software version --- src/app/SAB.cpp | 5 +++++ src/app/SAB.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/app/SAB.cpp b/src/app/SAB.cpp index 78280f7..6f33315 100644 --- a/src/app/SAB.cpp +++ b/src/app/SAB.cpp @@ -148,6 +148,11 @@ PowerInfo SAB::getPowerInfo(const unsigned char nbOfMeasures) const return p; } +const char *SAB::getSoftVersion() const +{ + return SOFT_VERSION; +} + unsigned char SAB::getError() const { return _error; diff --git a/src/app/SAB.h b/src/app/SAB.h index 7126f40..1339d54 100644 --- a/src/app/SAB.h +++ b/src/app/SAB.h @@ -10,6 +10,7 @@ #include "WEBServerManager.h" #include "IOManager.h" #include "TaskSchedulerManager.h" +#include "versions.h" #include #include #include @@ -38,6 +39,7 @@ class SAB SDCardConfig getSdCardConfig() const; PowerInfo getPowerInfo(const unsigned char nbOfMeasures = 5) const; + const char *getSoftVersion() const; unsigned char getError() const; private: void initGPIO();