We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentfb08ebf commit1465f44Copy full SHA for 1465f44
MeshBase.cpp
@@ -124,10 +124,13 @@ bool MeshBase::Message::IsDone() const
124
Serial.print(" split_part=");
125
Serial.print(header.split_part);
126
Serial.print(" blocks_recieved=");
127
-Serial.println(blocks_recieved);
128
-if (!header.split_more && blocks_recieved >= header.split_part)
+Serial.print(blocks_recieved);
+if (!header.split_more && blocks_recieved > header.split_part)
129
+{
130
+Serial.println(" - True **");
131
returntrue;
-Serial.println(" R IsDone() : False");
132
+}
133
+Serial.println(" - False");
134
returnfalse;
135
}
136
@@ -149,7 +152,6 @@ void MeshBase::HandlePacket(const byte* data, uint8_t len)
149
152
150
153
s->AddPart(payload, payload_length, header->split_part, header->split_more);
151
154
if (s->IsDone()) {
-Serial.println(" R IsDone() : true!!");
155
switch(header->type) {
156
case type_peer_discovery:
157
HandlePeerDiscovery(&(s->header), s->data, s->data_used);