/trunk/fc.c |
---|
239,6 → 239,7 |
void Piep(unsigned char Anzahl, unsigned int dauer) |
{ |
unsigned int wait = 0; |
unsigned char update_spi = 12; |
if(MotorenEin) return; //auf keinen Fall im Flug! |
GRN_OFF; |
while(Anzahl--) |
252,7 → 253,15 |
UpdateMotor = 0; |
if(!beeptime) wait--; |
LIBFC_Polling(); |
update_spi--; |
}; |
if(update_spi == 0) // 41Hz |
{ |
if(SPI_StartTransmitPacket()) update_spi = 12; |
else |
if(BytegapSPI == 0) SPI_TransmitByte(); |
} |
else if(BytegapSPI == 0) SPI_TransmitByte(); |
} |
} |
GRN_ON; |