Added code to print errors from RAM if SD card is not working
Clear errors from ram even if SD card erase failed
Added err_log_mem_replay function