Fixed wrong value compare with RS232 read function return value