Skip to content

Commit 2297d24

Browse files
committed
Minor fixes
1 parent 1d45c7e commit 2297d24

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

examples/simple_repeater/MyMesh.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,19 +165,21 @@ class MyMesh : public mesh::Mesh, public CommonCLICallbacks {
165165
void updateAdvertTimer() override;
166166
void updateFloodAdvertTimer() override;
167167

168-
#if defined(WITH_ESPNOW_BRIDGE)
168+
#if defined(WITH_BRIDGE)
169169
void setBridgeState(bool enable) {
170170
if (enable == bridge.getState()) return;
171171
enable ? bridge.begin() : bridge.end();
172172
}
173173

174+
#if defined(WITH_ESPNOW_BRIDGE)
174175
void updateBridgeChannel(int ch) override {
175176
bridge.setChannel(ch);
176177
if (bridge.getState()) {
177178
bridge.end();
178179
bridge.begin();
179180
}
180181
}
182+
#endif
181183
#endif
182184

183185
void setLoggingOn(bool enable) override { _logging = enable; }

src/helpers/CommonCLI.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ struct NodePrefs { // persisted to file
3131
uint8_t interference_threshold;
3232
uint8_t agc_reset_interval; // secs / 4
3333
uint8_t bridge_enabled; // boolean
34-
uint8_t bridge_channel; // 0 = AUTO, 1-14 valid
34+
uint8_t bridge_channel; // 1-14
3535
};
3636

3737
class CommonCLICallbacks {
@@ -56,7 +56,7 @@ class CommonCLICallbacks {
5656
virtual void saveIdentity(const mesh::LocalIdentity& new_id) = 0;
5757
virtual void clearStats() = 0;
5858
virtual void applyTempRadioParams(float freq, float bw, uint8_t sf, uint8_t cr, int timeout_mins) = 0;
59-
59+
6060
#ifdef WITH_ESPNOW_BRIDGE
6161
virtual void setBridgeState(bool enable) = 0;
6262
virtual void updateBridgeChannel(int ch) = 0;

0 commit comments

Comments
 (0)