mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
Minor fixes
This commit is contained in:
parent
1d45c7ec66
commit
2297d24013
2 changed files with 5 additions and 3 deletions
|
|
@ -165,12 +165,13 @@ public:
|
|||
void updateAdvertTimer() override;
|
||||
void updateFloodAdvertTimer() override;
|
||||
|
||||
#if defined(WITH_ESPNOW_BRIDGE)
|
||||
#if defined(WITH_BRIDGE)
|
||||
void setBridgeState(bool enable) {
|
||||
if (enable == bridge.getState()) return;
|
||||
enable ? bridge.begin() : bridge.end();
|
||||
}
|
||||
|
||||
#if defined(WITH_ESPNOW_BRIDGE)
|
||||
void updateBridgeChannel(int ch) override {
|
||||
bridge.setChannel(ch);
|
||||
if (bridge.getState()) {
|
||||
|
|
@ -178,6 +179,7 @@ public:
|
|||
bridge.begin();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
void setLoggingOn(bool enable) override { _logging = enable; }
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ struct NodePrefs { // persisted to file
|
|||
uint8_t interference_threshold;
|
||||
uint8_t agc_reset_interval; // secs / 4
|
||||
uint8_t bridge_enabled; // boolean
|
||||
uint8_t bridge_channel; // 0 = AUTO, 1-14 valid
|
||||
uint8_t bridge_channel; // 1-14
|
||||
};
|
||||
|
||||
class CommonCLICallbacks {
|
||||
|
|
@ -56,7 +56,7 @@ public:
|
|||
virtual void saveIdentity(const mesh::LocalIdentity& new_id) = 0;
|
||||
virtual void clearStats() = 0;
|
||||
virtual void applyTempRadioParams(float freq, float bw, uint8_t sf, uint8_t cr, int timeout_mins) = 0;
|
||||
|
||||
|
||||
#ifdef WITH_ESPNOW_BRIDGE
|
||||
virtual void setBridgeState(bool enable) = 0;
|
||||
virtual void updateBridgeChannel(int ch) = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue