correct issue on encoder message (network)

This commit is contained in:
AleaJactaEst 2020-04-11 16:29:16 +02:00
parent c8edca8e6f
commit 0b2dee6019
2 changed files with 6 additions and 2 deletions

View file

@ -10,6 +10,10 @@ def get_doc_classes():
return [
"NetworkConnection",
"NetworkConnectionCore",
"MessageQueue",
"NetworkConnection",
"NetworkConnectionCore",
"NetworkData",
]
def get_doc_path():

View file

@ -1786,7 +1786,7 @@ void ReferentialMessageCore::read_referential_step(Dictionary step, Vector<Eleme
ele->put_serial(head.get(ii).get_pos(), getPowerOf2(_size));
}
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));
int id = get_command(a);
if (id != Command::__LAST_ELEMENT)
@ -1840,7 +1840,7 @@ void ReferentialMessageCore::show()
{
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