WIP multichannel support

This commit is contained in:
Kevin Hester
2021-02-16 15:41:52 +08:00
parent 418a12e75f
commit 45caf394f0
18 changed files with 421 additions and 275 deletions

View File

@@ -4,6 +4,7 @@
#include "NodeDB.h"
#include "PowerFSM.h"
#include "RadioInterface.h"
#include "Channels.h"
#include <assert.h>
#if FromRadio_size > MAX_TO_FROM_RADIO_SIZE
@@ -279,9 +280,9 @@ void PhoneAPI::handleSetOwner(const User &o)
service.reloadOwner();
}
void PhoneAPI::handleSetChannel(const ChannelSettings &cc)
void PhoneAPI::handleSetChannel(const Channel &cc)
{
radioConfig.channel_settings = cc;
channels.setChannel(cc);
bool didReset = service.reloadConfig();
if (didReset) {