Tom Jetland
Joined: 23 Jun 2011 Posts: 31 Location: UK
|
|
Posted: Thu Aug 25, 2011 2:03 pm |
|
|
Ahh.. I see. Thanks for explaining that!
I was making an assumption that the re-entrancy was to do with interrupting the same interrupt twice... not running the delay_ms routine twice... Silly me!
Funny thing is, I did make myself a lovely comment inside the interrupt at the point of the delay command saying
| Code: | | // Not good practice to delay in an interrupt, sort this out! |
I just never got round to sorting it out, because it never caused a problem til now!
Thanks again.
Tom |
|