mirror of
https://github.com/liquidraver/ZephCore.git
synced 2026-10-22 22:11:56 +00:00
APC first test
This commit is contained in:
1 parent
695a0be9c5
commit
4bd84ddf7e
16 files changed
+487
-9
No files matched your search
@@ -183,6 +183,9 @@ CompanionMesh::CompanionMesh(mesh::Radio &radio, mesh::MillisecondClock &ms, mes
|
||||
void CompanionMesh::begin()
|
||||
{
|
||||
BaseChatMesh::begin();
|
||||
#ifdef CONFIG_ZEPHCORE_APC
|
||||
_power_ctrl.setSF(prefs.sf);
|
||||
#endif
|
||||
}
|
||||
|
||||
bool CompanionMesh::allowPacketForward(const mesh::Packet *packet)
|
||||
@@ -1777,6 +1780,9 @@ bool CompanionMesh::handleProtocolFrame(const uint8_t *data, size_t len)
|
||||
prefs.cr = cr;
|
||||
prefs.client_repeat = repeat;
|
||||
_store->savePrefs(prefs);
|
||||
#ifdef CONFIG_ZEPHCORE_APC
|
||||
_power_ctrl.setSF(sf);
|
||||
#endif
|
||||
if (_radio_reconfig_cb) _radio_reconfig_cb();
|
||||
LOG_INF("SET_RADIO_PARAMS: client_repeat=%d", repeat);
|
||||
sendPacketOk();
|
||||
|
||||
Reference in new issue
Block a user