Hello,
Still learning. Trying to understand some bootloader code. I understand what the registers are, but I don't understand what is going on in the "if" statement. Is it comparing the value of two bytes, if they are equal returns true?
ch = MCUSR;
MCUSR = 0;
if ((ch & _BV(WDRF))) app_start();
Thanks,
-ren