Leiu: Use: volatile *static* uint8_t first_edge = 'A'; Otherwise the compiler will allocate the variable on the call stack or optimize it out completely.
- Jose On Sun, May 30, 2010 at 8:41 AM, Joerg Wunsch <j...@uriah.heep.sax.de> wrote: > As Leiu wrote: > > > Please tell me why? > > Because you didn't show us full, compilable code so nobody > could ever possibly reproduce your problem. > > Please use avr-gcc-l...@nongnu.org for that kind of questions. > avr-libc-dev is meant for people who like to develop on avr-libc, or > have in-depth questions about its internals. > > -- > cheers, J"org .-.-. --... ...-- -.. . DL8DTL > > http://www.sax.de/~joerg/ NIC: JW11-RIPE > Never trust an operating system you don't have sources for. ;-) > > _______________________________________________ > AVR-libc-dev mailing list > AVR-libc-dev@nongnu.org > http://lists.nongnu.org/mailman/listinfo/avr-libc-dev > _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-libc-dev