REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
Loading...
Searching...
No Matches
persistent.cpp
Go to the documentation of this file.
1#include "nvmconfig/persistent.h"
2
3#include <ArduinoJson.h>
4
5#include "utils/error.h"
6#include "utils/logging.h"
7#include "utils/streaming_json.h" // only for debugging
8
9#include <net/auth.h>
10
11void debug_print_json(JsonObjectConst thing) { throw std::runtime_error("not impl"); }
12
13// TDOO maybe to core with StreamUtils::EepromStream abstraction?
14void nvmconfig::PersistentSettingsWriter::read_from_eeprom() {
15 auto &gatekeeper = net::auth::Gatekeeper::get();
16 gatekeeper.enable_auth = false;
17 gatekeeper.enable_users = false;
18}
19
20size_t nvmconfig::PersistentSettingsWriter::write_to_eeprom() {
21 throw std::runtime_error("not impl");
22 return 0;
23}
FLASHMEM void debug_print_json(JsonObjectConst thing)
Definition persistent.cpp:9