Changeset 1273 for trunk/MagicSoft/Cosy/candrv
- Timestamp:
- 04/11/02 13:20:10 (23 years ago)
- Location:
- trunk/MagicSoft/Cosy/candrv
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/candrv/network.cc
r1266 r1273 263 263 bool Network::HasError() const 264 264 { 265 for (int i=0; i<32; i++) 266 if (fNodes[i] && fNodes[i]->HasError()) 267 return true; 268 269 return false; 270 } 265 bool rc = false; 266 267 for (int i=0; i<32; i++) 268 { 269 if (!fNodes[i]) 270 continue; 271 272 if (!fNodes[i]->HasError()) 273 continue; 274 275 rc = true; 276 277 if (fNodes[i]->GetError() <= 0) 278 continue; 279 280 lout << "- Node #" << dec << i << " '" << fNodes[i]->GetNodeName(); 281 lout << "' has error #" << fNodes[i]->GetError() << endl; 282 } 283 284 return rc; 285 } -
trunk/MagicSoft/Cosy/candrv/nodedrv.cc
r1266 r1273 74 74 } 75 75 76 lout << "- Node #" << nodeid << " (" << name << ") initialized." << endl;76 lout << "- Node #" << (int)nodeid << " (" << name << ") initialized." << endl; 77 77 } 78 78 -
trunk/MagicSoft/Cosy/candrv/vmodican.cc
r1266 r1273 915 915 // and switch the can bus communication on 916 916 // 917 VmodIcan::VmodIcan(const char *dev, const int baud, MLog &out) : Log(out), MThread(false )//: CanDriver(dev, baud)917 VmodIcan::VmodIcan(const char *dev, const int baud, MLog &out) : Log(out), MThread(false, -10)//: CanDriver(dev, baud) 918 918 { 919 919 // 920 920 // Set priority of receiving thread and detach the receiving thread 921 921 // 922 SetPriority(-10);923 922 Detach(); 924 923
Note:
See TracChangeset
for help on using the changeset viewer.