I just love when I forget to add ‘volatile’ and the compiler happily optimizes away a chunk of code.
After staring for a while at the screen trying to figure out why it doesn’t work as expected I went for a quick nap. When I got back I noticed several warnings about it that were invisible to my eyes before.