Ignore:
Timestamp:
04/11/02 13:20:10 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy/candrv
Files:
3 edited

Legend:

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

    r1266 r1273  
    263263bool Network::HasError() const
    264264{
    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  
    7474    }
    7575
    76     lout << "- Node #" << nodeid << " (" << name << ") initialized." << endl;
     76    lout << "- Node #" << (int)nodeid << " (" << name << ") initialized." << endl;
    7777}
    7878
  • trunk/MagicSoft/Cosy/candrv/vmodican.cc

    r1266 r1273  
    915915//  and switch the can bus communication on
    916916//
    917 VmodIcan::VmodIcan(const char *dev, const int baud, MLog &out) : Log(out), MThread(false)//: CanDriver(dev, baud)
     917VmodIcan::VmodIcan(const char *dev, const int baud, MLog &out) : Log(out), MThread(false, -10)//: CanDriver(dev, baud)
    918918{
    919919    //
    920920    // Set priority of receiving thread and detach the receiving thread
    921921    //
    922     SetPriority(-10);
    923922    Detach();
    924923
Note: See TracChangeset for help on using the changeset viewer.