correct issue on encoder message (network)
This commit is contained in:
parent
c8edca8e6f
commit
0b2dee6019
2 changed files with 6 additions and 2 deletions
|
@ -10,6 +10,10 @@ def get_doc_classes():
|
||||||
return [
|
return [
|
||||||
"NetworkConnection",
|
"NetworkConnection",
|
||||||
"NetworkConnectionCore",
|
"NetworkConnectionCore",
|
||||||
|
"MessageQueue",
|
||||||
|
"NetworkConnection",
|
||||||
|
"NetworkConnectionCore",
|
||||||
|
"NetworkData",
|
||||||
]
|
]
|
||||||
|
|
||||||
def get_doc_path():
|
def get_doc_path():
|
||||||
|
|
|
@ -1786,7 +1786,7 @@ void ReferentialMessageCore::read_referential_step(Dictionary step, Vector<Eleme
|
||||||
ele->put_serial(head.get(ii).get_pos(), getPowerOf2(_size));
|
ele->put_serial(head.get(ii).get_pos(), getPowerOf2(_size));
|
||||||
}
|
}
|
||||||
a += head.get(ii).get_name();
|
a += head.get(ii).get_name();
|
||||||
uint32_t _size = head.get(ii).get_size();
|
uint32_t _size = head.get(ii).get_size()+1;
|
||||||
ele->put_serial(head.get(ii).get_pos(), getPowerOf2(_size));
|
ele->put_serial(head.get(ii).get_pos(), getPowerOf2(_size));
|
||||||
int id = get_command(a);
|
int id = get_command(a);
|
||||||
if (id != Command::__LAST_ELEMENT)
|
if (id != Command::__LAST_ELEMENT)
|
||||||
|
@ -1840,7 +1840,7 @@ void ReferentialMessageCore::show()
|
||||||
{
|
{
|
||||||
for(int i = 0; i < Command::__LAST_ELEMENT; ++i)
|
for(int i = 0; i < Command::__LAST_ELEMENT; ++i)
|
||||||
{
|
{
|
||||||
DBG_PRINT(itos(i) + ") " + get_command_name(i) + " " + this->_encoder[i].show().ascii().get_data() + ".");
|
DBG_PRINT(itos(i) + ") " + get_command_name(i) + " " + this->_encoder[i].show().ascii().get_data() + " [size:" + itos(this->_encoder[i].size_data()) + "]");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// show element to read data
|
// show element to read data
|
||||||
|
|
Loading…
Reference in a new issue