This commit is contained in:
midelic 2016-08-27 09:29:57 +01:00 committed by GitHub
parent ea714ea421
commit 701f17df90

View File

@ -402,6 +402,44 @@ void frskyUpdate()
} }
} }
#endif #endif
#ifdef BASH_SERIAL
uint8_t h ;
uint8_t t ;
h = SerialControl.head ;
t = SerialControl.tail ;
if ( h >= t )
{
t += 64 - h ;
}
else
{
t -= h ;
}
if ( t < 32 )
{
return ;
}
#else
uint8_t h ;
uint8_t t ;
h = tx_head ;
t = tx_tail ;
if ( h >= t )
{
t += TXBUFFER_SIZE - h ;
}
else
{
t -= h ;
}
if ( t < 16 )
{
return ;
}
#endif
} }
#endif #endif