Always erase exception dump in memory

This commit is contained in:
Aurora Wright 2017-08-17 17:38:27 +02:00
parent 3f356da879
commit c92de03a5f

View File

@ -191,10 +191,9 @@ void detectAndProcessExceptionDumps(void)
drawString(true, 10, posY + SPACING_Y, COLOR_WHITE, "Press any button to shutdown");
memset32((void *)dumpHeader, 0, dumpHeader->totalSize);
waitInput(false);
exit:
memset32((void *)dumpHeader, 0, dumpHeader->totalSize);
mcuPowerOff();
}