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();