Ignore:
Timestamp:
04/12/03 19:06:27 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/devdrv/macs.cc

    r1804 r1953  
    4646    switch (idx)
    4747    {
     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
    4856    case 0x100a:
    4957        lout << "- " << GetNodeName() << ": Using Software Version V" << dec << (int)(val>>16) << "." << (int)(val&0xff) << endl;
     
    221229}
    222230
    223 
    224231void Macs::Init()
    225232{
     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);
    226240    if (HasError())
    227241    {
     
    238252    RequestSDO(0x100a);
    239253    WaitForSdo(0x100a);
    240 
    241254    if (IsZombieNode())
    242     {
    243         lout << GetNodeName() << " - InitDevice failed!" << endl;
    244         return;
    245     }
     255        return;
    246256
    247257    // FIXME! Not statically linked!
     
    538548        return;
    539549
     550    case 71:
     551        lout << "Array out of bound." << endl;
     552        return;
     553
    540554    case 84:
    541555        lout << "Too many (>12) ON TIME calls." << endl;
Note: See TracChangeset for help on using the changeset viewer.