mirror of
https://github.com/peterantypas/maiana.git
synced 2025-05-18 08:20:08 -07:00
Minor optimization
This commit is contained in:
parent
512c2c892a
commit
e655e48841
@ -121,13 +121,13 @@ void Receiver::resetBitScanner()
|
|||||||
|
|
||||||
void Receiver::onBitClock()
|
void Receiver::onBitClock()
|
||||||
{
|
{
|
||||||
bsp_signal_high();
|
//bsp_signal_high();
|
||||||
++mSlotBitNumber;
|
++mSlotBitNumber;
|
||||||
|
|
||||||
// Don't waste time processing bits when the transceiver is transmitting
|
// Don't waste time processing bits when the transceiver is transmitting
|
||||||
if ( gRadioState == RADIO_TRANSMITTING )
|
if ( gRadioState == RADIO_TRANSMITTING )
|
||||||
{
|
{
|
||||||
bsp_signal_low();
|
//bsp_signal_low();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -162,7 +162,7 @@ void Receiver::onBitClock()
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bsp_signal_low();
|
//bsp_signal_low();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -121,7 +121,7 @@ bool TXPacket::eof()
|
|||||||
|
|
||||||
bool TXPacket::canRampDown()
|
bool TXPacket::canRampDown()
|
||||||
{
|
{
|
||||||
return mPosition >= mSize - 3;
|
return mPosition == mSize - 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t TXPacket::nextBit()
|
uint8_t TXPacket::nextBit()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user