|
|
@ -12702,10 +12702,10 @@ void setup() { |
|
|
|
|
|
|
|
// Check startup - does nothing if bootloader sets MCUSR to 0
|
|
|
|
byte mcu = MCUSR; |
|
|
|
if (mcu & 1) SERIAL_ECHOLNPGM(MSG_POWERUP); |
|
|
|
if (mcu & 2) SERIAL_ECHOLNPGM(MSG_EXTERNAL_RESET); |
|
|
|
if (mcu & 4) SERIAL_ECHOLNPGM(MSG_BROWNOUT_RESET); |
|
|
|
if (mcu & 8) SERIAL_ECHOLNPGM(MSG_WATCHDOG_RESET); |
|
|
|
if (mcu & 1) SERIAL_ECHOLNPGM(MSG_POWERUP); |
|
|
|
if (mcu & 2) SERIAL_ECHOLNPGM(MSG_EXTERNAL_RESET); |
|
|
|
if (mcu & 4) SERIAL_ECHOLNPGM(MSG_BROWNOUT_RESET); |
|
|
|
if (mcu & 8) SERIAL_ECHOLNPGM(MSG_WATCHDOG_RESET); |
|
|
|
if (mcu & 32) SERIAL_ECHOLNPGM(MSG_SOFTWARE_RESET); |
|
|
|
MCUSR = 0; |
|
|
|
|
|
|
|