Update FrSkyX_cc2500.ino

This commit is contained in:
midelic 2016-08-01 01:25:22 +03:00 committed by GitHub
parent 32039ff012
commit 5d3c157e3a

View File

@ -340,7 +340,11 @@ uint16_t initFrSkyX()
{
while(!chanskip)
{
randomSeed((uint32_t)analogRead(A6) << 10 | analogRead(A7));
#if defined STM32_board
randomSeed((uint32_t)analogRead(PB0) << 10 | analogRead(PB1));
#else
randomSeed((uint32_t)analogRead(A6) << 10 | analogRead(A7));
#endif
chanskip=random(0xfefefefe)%47;
}
while((chanskip-ctr)%4)