Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions variants/host/HostBoard.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
#include <Mesh.h>
#include <stdint.h>

// Declared rather than included: KeyValueStore.h exists only from MeshCore
// 1.18 on, and this header has to keep building the versions before it.
class KeyValueStore;

class HostBoard : public mesh::MainBoard {
public:
void begin() {}
Expand All @@ -32,6 +36,11 @@ class HostBoard : public mesh::MainBoard {
// No thermal sensor. -128 is outside anything a working MCU reports, so a
// reader sees an absent value rather than a cold day.
float getMCUTemperature() { return -128.0f; }

// Every role hands the board its custom prefs at startup so a variant can
// read its own settings from them. A host has no board-specific settings,
// which is also what MeshCore's own nRF52, ESP32 and STM32 boards answer.
void attachDynamicPrefs(KeyValueStore*) {}
};

// HostRTCClock is wall time, which is what a repeater's RTC provides once it
Expand Down
Loading