extract Version from define
Some checks failed
Test compiling project / test (push) Failing after 1m33s
Some checks failed
Test compiling project / test (push) Failing after 1m33s
This commit is contained in:
@@ -5,5 +5,6 @@
|
||||
#define water_level_min_key "water_level_min"
|
||||
#define water_level_max_key "water_level_max"
|
||||
#define water_volume_key "water_volume"
|
||||
#define current_version Version{0, 0, 2}
|
||||
|
||||
#define RESISTOR_VALUE 4
|
||||
@@ -1,4 +1,5 @@
|
||||
#include <Arduino.h>
|
||||
#include <utils.h>
|
||||
|
||||
#pragma once
|
||||
|
||||
@@ -37,4 +38,11 @@ struct ActiveErrors {
|
||||
bool current_high;
|
||||
bool level_low;
|
||||
bool level_high;
|
||||
};
|
||||
|
||||
struct OTAStatus {
|
||||
bool update_available;
|
||||
Version current_version;
|
||||
Version latest_version;
|
||||
int update_progress;
|
||||
};
|
||||
Reference in New Issue
Block a user