From b607d74597a0a4554b7333a9f6d81f40ab9a6006 Mon Sep 17 00:00:00 2001 From: fvanroie Date: Sat, 22 Feb 2020 01:01:54 +0100 Subject: [PATCH] Add versioning --- include/hasp_conf.h | 4 +++ src/hasp_http.cpp | 70 ++++++++++++++++++++++++++++----------------- 2 files changed, 47 insertions(+), 27 deletions(-) diff --git a/include/hasp_conf.h b/include/hasp_conf.h index 4714335e..6b206c43 100644 --- a/include/hasp_conf.h +++ b/include/hasp_conf.h @@ -1,5 +1,9 @@ #pragma once +#define HASP_VERSION_MAJOR 0 +#define HASP_VERSION_MINOR 0 +#define HASP_VERSION_REVISION 5 + #define HASP_USE_APP 1 #define HASP_USE_WIFI 1 diff --git a/src/hasp_http.cpp b/src/hasp_http.cpp index a208eb32..bdf1347e 100644 --- a/src/hasp_http.cpp +++ b/src/hasp_http.cpp @@ -2,6 +2,8 @@ #include #include "ArduinoJson.h" +#include "hasp_conf.h" + #include "hasp_log.h" #include "hasp_gui.h" #include "hasp_hal.h" @@ -68,7 +70,9 @@ static const char HTTP_SCRIPT[] PROGMEM = "