Skip to content

Commit

Permalink
Possible UDP bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kian-Wee authored Apr 28, 2023
1 parent e2816bd commit 13e6816
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mavesp8266_vehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ MavESP8266Vehicle::readMessage()
//-- Move the pending ones up the queue
int left = _queue_count - sent;
for(int i = 0; i < left; i++) {
memcpy(&_message[sent+i], &_message[i], sizeof(mavlink_message_t));
//memcpy(&_message[sent+i], &_message[i], sizeof(mavlink_message_t));
memcpy(&_message[i], &_message[sent+i], sizeof(mavlink_message_t));
}
_queue_count = left;
}
Expand Down

0 comments on commit 13e6816

Please sign in to comment.