moved fallback GIT_VERSION to AirGradient.h

This commit is contained in:
nick-4711
2024-04-24 20:27:45 +07:00
parent a3cbca61ee
commit 5078b35341
3 changed files with 5 additions and 5 deletions

View File

@ -37,6 +37,7 @@ CC BY-SA 4.0 Attribution-ShareAlike 4.0 International License
*/ */
#include <HardwareSerial.h> #include <HardwareSerial.h>
#include "AirGradient.h"
#include "OtaHandler.h" #include "OtaHandler.h"
#include "AgApiClient.h" #include "AgApiClient.h"
#include "AgConfigure.h" #include "AgConfigure.h"
@ -49,7 +50,6 @@ CC BY-SA 4.0 Attribution-ShareAlike 4.0 International License
#include "MqttClient.h" #include "MqttClient.h"
#include "OpenMetrics.h" #include "OpenMetrics.h"
#include "WebServer.h" #include "WebServer.h"
#include <AirGradient.h>
#include <WebServer.h> #include <WebServer.h>
#define LED_BAR_ANIMATION_PERIOD 100 /** ms */ #define LED_BAR_ANIMATION_PERIOD 100 /** ms */

View File

@ -5,10 +5,6 @@
#include "WiFi.h" #include "WiFi.h"
#endif #endif
#ifndef GIT_VERSION
#define GIT_VERSION "snapshot"
#endif
AirGradient::AirGradient(BoardType type) AirGradient::AirGradient(BoardType type)
: pms5003(type), pms5003t_1(type), pms5003t_2(type), s8(type), sgp41(type), : pms5003(type), pms5003t_1(type), pms5003t_2(type), s8(type), sgp41(type),
display(type), boardType(type), button(type), statusLed(type), display(type), boardType(type), button(type), statusLed(type),

View File

@ -13,6 +13,10 @@
#include "Sgp41/Sgp41.h" #include "Sgp41/Sgp41.h"
#include "Sht/Sht.h" #include "Sht/Sht.h"
#ifndef GIT_VERSION
#define GIT_VERSION "snapshot"
#endif
/** /**
* @brief Class with define all the sensor has supported by Airgradient. Each * @brief Class with define all the sensor has supported by Airgradient. Each
* sensor usage must be init before use. * sensor usage must be init before use.