mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-11-30 17:09:40 +00:00
Range function fixed
This commit is contained in:
@@ -156,9 +156,8 @@ void CYRF_SetPower(uint8_t val)
|
||||
uint8_t power=CYRF_BIND_POWER;
|
||||
if(IS_BIND_DONE_on)
|
||||
power=IS_POWER_FLAG_on?CYRF_HIGH_POWER:CYRF_LOW_POWER;
|
||||
else
|
||||
if(IS_RANGE_FLAG_on)
|
||||
power=CYRF_POWER_0;
|
||||
if(IS_RANGE_FLAG_on)
|
||||
power=CYRF_RANGE_POWER;
|
||||
CYRF_WriteRegister(CYRF_03_TX_CFG, val | power);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user