tools/Master.cpp
changeset 976 677e63a8ed6e
parent 974 5868944a6456
child 978 2962baf7e6d1
equal deleted inserted replaced
975:dae04112bcc7 976:677e63a8ed6e
   449     if (strValue.fail()) {
   449     if (strValue.fail()) {
   450         err << "Invalid value argument '" << commandArgs[2] << "'!";
   450         err << "Invalid value argument '" << commandArgs[2] << "'!";
   451         throw MasterException(err.str());
   451         throw MasterException(err.str());
   452     }
   452     }
   453 
   453 
   454     cerr << "dt " << dataType->name << endl;
       
   455     printRawData(data.data, data.data_size);
       
   456 
       
   457     open(ReadWrite);
   454     open(ReadWrite);
   458 
   455 
   459     if (ioctl(fd, EC_IOCTL_SDO_DOWNLOAD, &data) < 0) {
   456     if (ioctl(fd, EC_IOCTL_SDO_DOWNLOAD, &data) < 0) {
   460         stringstream err;
   457         stringstream err;
   461         err << "Failed to download Sdo: " << strerror(errno);
   458         err << "Failed to download Sdo: " << strerror(errno);