try to make SDcard reset sequence more reliable.
fix compilation error.