Ignore:
Timestamp:
08/26/08 12:11:32 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy/candrv
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/candrv/canopen.cc

    r8869 r9132  
    7878    if (fInterface)
    7979        fInterface->Stop();
     80}
     81
     82Bool_t CanOpen::HasConnection() const
     83{
     84    return fInterface ? fInterface->HasConnection() : kFALSE;
    8085}
    8186
  • trunk/MagicSoft/Cosy/candrv/canopen.h

    r8864 r9132  
    101101
    102102    void SetInterface(Interface *f) { fInterface=f; } // Set Handle to the interface
     103    Bool_t HasConnection() const;
    103104
    104105    // Send a Process Data Object (PDO) to the CanOpen bus
  • trunk/MagicSoft/Cosy/candrv/network.cc

    r8864 r9132  
    356356bool Network::RebootZombies()
    357357{
     358    if (!HasConnection())
     359    {
     360        gLog << warn << "- No connection to network." << endl;
     361        return false;
     362    }
     363
    358364    bool rc = true;
    359365
    360     gLog << "- Trying to reboot all Zombies..." << endl;
     366    gLog << inf2 << "- Trying to reboot all Zombies..." << endl;
    361367    for (int i=0; i<32; i++)
    362368        if (fNodes[i])
     
    364370                if (!fNodes[i]->Reboot())
    365371                {
    366                     gLog << "- Failed to reboot " << fNodes[i]->GetNodeName() << "." << endl;
     372                    gLog << err << "- Failed to reboot " << fNodes[i]->GetNodeName() << "." << endl;
    367373                    rc = false;
    368374                }
  • trunk/MagicSoft/Cosy/candrv/nodedrv.cc

    r8863 r9132  
    427427        return true;
    428428
    429     gLog << inf2 << " + " << GetNodeName() << ": NodeDrv::WaitForSdo: 0x" << hex << idx << "/" << dec << (int)subidx << " --> ZOMBIE! " << MTime(-1) << endl;
     429    gLog << inf2 << " + " << GetNodeName() << ": NodeDrv::WaitForSdo: 0x" << hex << idx << "/" << dec << (int)subidx << " ";
    430430    if (zombie)
     431    {
     432        gLog << "--> ZOMBIE! " << endl;
    431433        SetZombie();
     434     }
     435
     436    gLog << MTime(-1) << endl;
     437
    432438    return false;
    433439}
Note: See TracChangeset for help on using the changeset viewer.