getst(id, c) was looping forever so changed it as in mcs51 port