Added getSoftVersion method to get the current software version

This commit is contained in:
anschrammh 2019-08-19 13:53:57 +02:00
parent 6f74c10140
commit 47eb7889d0
2 changed files with 7 additions and 0 deletions

View File

@ -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;

View File

@ -10,6 +10,7 @@
#include "WEBServerManager.h"
#include "IOManager.h"
#include "TaskSchedulerManager.h"
#include "versions.h"
#include <Adafruit_SSD1306.h>
#include <RTClib.h>
#include <SD.h>
@ -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();