mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-09-22 18:13:46 +08:00
merge -c1617 branches/stable-1.4: Added octet_string as an SDO data type.
This commit is contained in:
@@ -36,7 +36,8 @@ string CommandUpload::helpString() const
|
||||
<< "the --type option is mandatory." << endl
|
||||
<< endl
|
||||
<< "These are the valid SDO entry data types:" << endl
|
||||
<< " int8, int16, int32, uint8, uint16, uint32, string." << endl
|
||||
<< " int8, int16, int32, uint8, uint16, uint32, string," << endl
|
||||
<< " octet_string." << endl
|
||||
<< endl
|
||||
<< "Arguments:" << endl
|
||||
<< " INDEX is the SDO index and must be an unsigned" << endl
|
||||
@@ -181,6 +182,10 @@ void CommandUpload::execute(MasterDevice &m, const StringVector &args)
|
||||
cout << string((const char *) data.target, data.data_size)
|
||||
<< endl;
|
||||
break;
|
||||
case 0x000a: // octet_string
|
||||
cout << string((const char *) data.target, data.data_size)
|
||||
<< endl;
|
||||
break;
|
||||
default:
|
||||
printRawData(data.target, data.data_size); // FIXME
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user