From 0b2dee601926c2704fa5d34ce2b842b0c3082e94 Mon Sep 17 00:00:00 2001 From: AleaJactaEst Date: Sat, 11 Apr 2020 16:29:16 +0200 Subject: [PATCH] correct issue on encoder message (network) --- modules/networkconnection/config.py | 4 ++++ modules/referentialmessage/referentialmessagecore.cpp | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/networkconnection/config.py b/modules/networkconnection/config.py index b308d68..2e64603 100644 --- a/modules/networkconnection/config.py +++ b/modules/networkconnection/config.py @@ -10,6 +10,10 @@ def get_doc_classes(): return [ "NetworkConnection", "NetworkConnectionCore", + "MessageQueue", + "NetworkConnection", + "NetworkConnectionCore", + "NetworkData", ] def get_doc_path(): diff --git a/modules/referentialmessage/referentialmessagecore.cpp b/modules/referentialmessage/referentialmessagecore.cpp index ea778ec..0c429a8 100644 --- a/modules/referentialmessage/referentialmessagecore.cpp +++ b/modules/referentialmessage/referentialmessagecore.cpp @@ -1786,7 +1786,7 @@ void ReferentialMessageCore::read_referential_step(Dictionary step, Vectorput_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