Fix rt_serial_control() bug for customized command and indent the code

i use rt_device_control() for my customized command, it can not call it, 
so i fix it , it`s work fine.