Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • You are using 2 servos : servo and wasteFlapServo ? Commented Jul 6, 2020 at 13:11
  • Note that Serial.println() is another no-no during an ISR. Any sort of serial communication is quite slow. Commented Jul 6, 2020 at 14:04
  • @DuncanC Though there the problem is more with the serial data not getting send. print() just places the data in the buffer. The actual transmission is done via ISRs, which place each byte into the UART hardware register. So all the data would fill the buffer, untils it's full. And the data would only get send, when going out of the ISR. I think in the newer core versions print will also not block at full buffer, when inside an ISR, though I don't remember, where I read that Commented Jul 6, 2020 at 14:14