1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-16 07:23:07 +01:00

allow to set default and hide for cfg values in hardware defs

This commit is contained in:
andreas
2023-10-05 16:57:05 +02:00
parent 27de94b1ae
commit 9572b1e95e
6 changed files with 58 additions and 4 deletions

View File

@@ -4,8 +4,10 @@
#include <Preferences.h>
#include "GwLog.h"
#include "GwConfigItem.h"
#include "GwHardware.h"
#include "GwConfigDefinitions.h"
#include <map>
#include <vector>
class GwConfigHandler: public GwConfigDefinitions{
@@ -28,6 +30,8 @@ class GwConfigHandler: public GwConfigDefinitions{
int getInt(const String name,int defaultv=0) const;
GwConfigInterface * getConfigItem(const String name, bool dummy=false) const;
bool checkPass(String hash);
std::vector<String> getHidden() const;
int numHidden() const;
/**
* change the value of a config item
* will become a noop after stopChanges has been called