Changeset 1953 for trunk/MagicSoft/Cosy/devdrv/macs.cc
- Timestamp:
- 04/12/03 19:06:27 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/devdrv/macs.cc
r1804 r1953 46 46 switch (idx) 47 47 { 48 case 0x1003: 49 // FIXME, see Init 50 if (subidx!=2) 51 return; 52 lout << "- " << GetNodeName() << ": Error[0]=" << dec << val << endl; 53 SetError(val); 54 return; 55 48 56 case 0x100a: 49 57 lout << "- " << GetNodeName() << ": Using Software Version V" << dec << (int)(val>>16) << "." << (int)(val&0xff) << endl; … … 221 229 } 222 230 223 224 231 void Macs::Init() 225 232 { 233 // 234 // Request current error status (FIXME: is the first entry in the 235 // error list) 236 // 237 lout << "- " << GetNodeName() << ": Requesting Error[0]." << endl; 238 RequestSDO(0x1003, 2); 239 WaitForSdo(0x1003, 2); 226 240 if (HasError()) 227 241 { … … 238 252 RequestSDO(0x100a); 239 253 WaitForSdo(0x100a); 240 241 254 if (IsZombieNode()) 242 { 243 lout << GetNodeName() << " - InitDevice failed!" << endl; 244 return; 245 } 255 return; 246 256 247 257 // FIXME! Not statically linked! … … 538 548 return; 539 549 550 case 71: 551 lout << "Array out of bound." << endl; 552 return; 553 540 554 case 84: 541 555 lout << "Too many (>12) ON TIME calls." << endl;
Note:
See TracChangeset
for help on using the changeset viewer.