forked from Archive/PX4-Autopilot
Removed text reuse, causing crash with stack trace
This commit is contained in:
parent
f6ea42ab5e
commit
668d1b3301
|
@ -220,11 +220,11 @@ mixer_handle_text(const void *buffer, size_t length)
|
||||||
if (resid != mixer_text_length) {
|
if (resid != mixer_text_length) {
|
||||||
debug("used %u", mixer_text_length - resid);
|
debug("used %u", mixer_text_length - resid);
|
||||||
|
|
||||||
/* copy any leftover text to the base of the buffer for re-use */
|
// copy any leftover text to the base of the buffer for re-use
|
||||||
if (resid > 0)
|
// if (resid > 0)
|
||||||
memcpy(&mixer_text[0], &mixer_text[mixer_text_length - resid], resid);
|
// memcpy(&mixer_text[0], &mixer_text[mixer_text_length - resid], resid);
|
||||||
|
|
||||||
mixer_text_length = resid;
|
// mixer_text_length = resid;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue