Skip to content
Snippets Groups Projects
Commit 31e3f329 authored by Randy Mackay's avatar Randy Mackay
Browse files

Rover: send_text_P bug fix for short messages

parent c7961a72
No related branches found
No related tags found
No related merge requests found
......@@ -912,6 +912,9 @@ GCS_MAVLINK::send_text_P(gcs_severity severity, const prog_char_t *str)
uint8_t i;
for (i=0; i<sizeof(m.text); i++) {
m.text[i] = pgm_read_byte((const prog_char *)(str++));
if (m.text[i] == '\0') {
break;
}
}
if (i < sizeof(m.text)) m.text[i] = 0;
mavlink_send_text(chan, severity, (const char *)m.text);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment