Changeset 526
- Timestamp:
- 11/21/09 12:22:14 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/csctapi/io_serial.c
r523 r526 772 772 773 773 for (count = 0; count < size * (_in_echo_read ? (1+io_serial_need_dummy_char) : 1); count++) 774 #ifdef SH4 774 775 { 775 776 gettimeofday(&tv,0); … … 795 796 } 796 797 798 #else //no SH4 799 { 800 if (IO_Serial_WaitToRead (io->fd, 0, timeout)) 801 { 802 if (read (io->fd, &c, 1) != 1) 803 { 804 #ifdef DEBUG_IO 805 printf ("ERROR\n"); 806 fflush (stdout); 807 #endif 808 return FALSE; 809 } 810 data[_in_echo_read ? count/(1+io_serial_need_dummy_char) : count] = c; 811 812 #ifdef DEBUG_IO 813 printf ("%X ", c); 814 fflush (stdout); 815 #endif 816 } 817 else 818 { 819 #ifdef DEBUG_IO 820 printf ("TIMEOUT\n"); 821 fflush (stdout); 822 #endif 823 tcflush (io->fd, TCIFLUSH); 824 return FALSE; 825 } 826 } 827 #endif //endif else SH4 797 828 _in_echo_read = 0; 798 829
Note:
See TracChangeset
for help on using the changeset viewer.