modify some bug about uart data and gpio