and now it should be possible to enter and leave bind mode

This commit is contained in:
Pawel Spychalski
2018-05-23 14:38:59 +02:00
parent bb2317b06a
commit 831c97b219
8 changed files with 27 additions and 23 deletions

View File

@@ -23,16 +23,16 @@ void PlatformNode::setRcChannel(uint8_t channel, int value, int offset) {
void PlatformNode::enterBindMode(void) {
isBindMode = true;
// radioNode.set(
// 0, // Minimum power
// 125000, // 125kHz bandwidth
// 6, // low spreading factor, we do not need high RX sensitivity
// 5, // same for coding rate
// 868000000 //Fixed frequency while binding
// );
radioNode.set(
0, // Minimum power
125000, // 125kHz bandwidth
6, // low spreading factor, we do not need high RX sensitivity
5, // same for coding rate
868000000 //Fixed frequency while binding
);
}
void PlatformNode::leaveBindMode(void) {
isBindMode = false;
radioNode.reset();
}