Changeset 4076 for trunk/MagicSoft/Cosy/candrv/vmodican.cc
- Timestamp:
- 05/15/04 16:46:27 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/candrv/vmodican.cc
r2518 r4076 116 116 unsigned char c; 117 117 const int n = read(fd, &c, 1); 118 119 118 if (n<0) 120 119 { 121 120 cerr << "Vmodican: read(" << dec << (int)fd << "," << (void*)&c; 122 cerr << ",1) returned c=" << (int)c << " '" << strerror(errno);123 cerr << "' (errno = " << errno << ")" << endl;121 cerr << ",1) returned rc=" << n << " c=" << (int)c << " '"; 122 cerr << strerror(errno) << "' (errno = " << errno << ")" << endl; 124 123 continue; 125 //return (void *)1;126 124 } 127 125 … … 936 934 // and switch the can bus communication on 937 935 // 938 VmodIcan::VmodIcan(const char *dev, const int baud, MLog &out) : Log(out), MThread(false, -10)//: CanDriver(dev, baud)936 VmodIcan::VmodIcan(const char *dev, const int baud, MLog &out) : Log(out), MThread(false, 10)//: CanDriver(dev, baud) 939 937 { 940 938 //
Note:
See TracChangeset
for help on using the changeset viewer.