mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-07-03 03:57:51 +00:00
change power on the fly
This commit is contained in:
parent
2f5aec25c9
commit
f3e4951521
@ -137,7 +137,11 @@ void A7105_SetPower()
|
||||
power=IS_POWER_FLAG_on?A7105_HIGH_POWER:A7105_LOW_POWER;
|
||||
if(IS_RANGE_FLAG_on)
|
||||
power=A7105_RANGE_POWER;
|
||||
if(prev_power != power)
|
||||
{
|
||||
A7105_WriteReg(0x28, power);
|
||||
prev_power=power;
|
||||
}
|
||||
}
|
||||
|
||||
void A7105_Strobe(uint8_t address) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user