Rev 2099 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2099 | Rev 2102 | ||
---|---|---|---|
Line 84... | Line 84... | ||
84 | /* |
84 | /* |
85 | * Make [numbeeps] beeps. |
85 | * Make [numbeeps] beeps. |
86 | */ |
86 | */ |
87 | void beepNumber(uint8_t numbeeps) { |
87 | void beepNumber(uint8_t numbeeps) { |
88 | while(numbeeps--) { |
88 | while(numbeeps--) { |
89 | if(MKFlags & MKFLAG_MOTOR_RUN) return; //auf keinen Fall bei laufenden Motoren! |
89 | if(isMotorRunning) return; //auf keinen Fall bei laufenden Motoren! |
90 | beep(100); // 0.1 second |
90 | beep(100); // 0.1 second |
91 | delay_ms(250); // blocks 250 ms as pause to next beep, |
91 | delay_ms(250); // blocks 250 ms as pause to next beep, |
92 | // this will block the flight control loop, |
92 | // this will block the flight control loop, |
93 | // therefore do not use this function if motors are running |
93 | // therefore do not use this function if motors are running |
94 | } |
94 | } |