return previous command for dt==0, reset all for error