1
0
mirror of https://github.com/peterantypas/maiana.git synced 2025-05-18 08:20:08 -07:00

Minor optimization

This commit is contained in:
Peter Antypas 2020-11-04 11:06:04 -08:00
parent 512c2c892a
commit e655e48841
2 changed files with 4 additions and 4 deletions

View File

@ -121,13 +121,13 @@ void Receiver::resetBitScanner()
void Receiver::onBitClock()
{
bsp_signal_high();
//bsp_signal_high();
++mSlotBitNumber;
// Don't waste time processing bits when the transceiver is transmitting
if ( gRadioState == RADIO_TRANSMITTING )
{
bsp_signal_low();
//bsp_signal_low();
return;
}
@ -162,7 +162,7 @@ void Receiver::onBitClock()
}
#endif
bsp_signal_low();
//bsp_signal_low();
}
/**

View File

@ -121,7 +121,7 @@ bool TXPacket::eof()
bool TXPacket::canRampDown()
{
return mPosition >= mSize - 3;
return mPosition == mSize - 3;
}
uint8_t TXPacket::nextBit()