openbeacon: set rf strength to 3 after sending
This commit is contained in:
parent
29c7dfdf64
commit
eee6ae55f0
|
@ -72,6 +72,17 @@ static void openbeaconRead()
|
|||
|
||||
void openbeaconSetup(void)
|
||||
{
|
||||
uint8_t c = 0;
|
||||
uint8_t channels[] = {12,17,22,27,32,37,42,47,52,57,62,67,72};
|
||||
//nrf_startCW();
|
||||
while(0){
|
||||
delayms(20);
|
||||
nrf_set_channel(channels[c++]);
|
||||
if( c == sizeof(channels) ){
|
||||
c = 0;
|
||||
}
|
||||
}
|
||||
|
||||
oid = GetUUID32();
|
||||
strength = 0;
|
||||
#if SAVE_OPENBEACON
|
||||
|
@ -137,8 +148,6 @@ static void openbeaconSendPacket(uint32_t id, uint32_t seq,
|
|||
|
||||
void openbeaconSend(void)
|
||||
{
|
||||
//uint8_t status;
|
||||
|
||||
nrf_config_get(&oldconfig);
|
||||
|
||||
nrf_set_channel(OPENBEACON_CHANNEL);
|
||||
|
@ -153,6 +162,6 @@ void openbeaconSend(void)
|
|||
openbeaconSaveBlock();
|
||||
#endif
|
||||
nrf_config_set(&oldconfig);
|
||||
//return status;
|
||||
nrf_set_strength(3);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue