Set correct channel for openbeacon

This commit is contained in:
Stefan `Sec` Zehl 2011-08-03 00:24:31 +02:00
parent 69907e7d16
commit 718f3fc381
2 changed files with 2 additions and 0 deletions

View File

@ -90,6 +90,7 @@ uint8_t openbeaconSendPacket(uint32_t id, uint32_t seq,
uint8_t openbeaconSend(void) uint8_t openbeaconSend(void)
{ {
uint8_t status; uint8_t status;
nrf_set_channel(OPENBEACON_CHANNEL);
nrf_set_strength(strength); nrf_set_strength(strength);
nrf_set_tx_mac(sizeof(mac), mac); nrf_set_tx_mac(sizeof(mac), mac);

View File

@ -6,6 +6,7 @@
#include "basic/byteorder.h" #include "basic/byteorder.h"
#define OPENBEACON_SAVE 0xFFFF #define OPENBEACON_SAVE 0xFFFF
#define OPENBEACON_CHANNEL 81
void openbeaconShutdown(void); void openbeaconShutdown(void);
void openbeaconSaveBlock(void); void openbeaconSaveBlock(void);