Ignore:
Timestamp:
08/07/12 09:47:09 (12 years ago)
Author:
tbretz
Message:
Improved logging output.
File:
1 edited

Legend:

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

    r9515 r14320  
    3434#include "MLog.h"
    3535#include "MLogManip.h"
     36
     37#include "MTime.h"
    3638
    3739#include "interface.h"
     
    281283    if (ms && t.HasTimedOut())
    282284    {
    283         gLog << inf << "- CanOpen::WaitForSdos timed out." << endl;
     285        gLog << warn << "- CanOpen::WaitForSdos timed out." << endl;
    284286        rc = false;
    285287    }
     
    317319    if (ms && t.HasTimedOut())
    318320    {
    319         //cout << "WaitForSdo Node #" << (int)node << " " << idx << "/" << (int)subidx << " timed out." << endl;
     321        gLog << warn << MTime(-1);
     322        gLog << " - CanOpen::WaitForSdo Node #" << (int)node << " " << hex << idx << "/" << dec << (int)subidx << " timed out after " << ms << "ms." << endl;
    320323        rc = false;
    321324    }
Note: See TracChangeset for help on using the changeset viewer.