fixed compiler warning and sd ecmd commands
Merge pull request #362 from dwiesner/sd_ecmd_fix

fixed compiler warning and sd ecmd commands