删除多余线程,减少CPU支出

This commit is contained in:
hm
2022-07-18 01:23:55 +08:00
parent adf77ef3f6
commit 5a35692017
7 changed files with 168 additions and 20 deletions
+5 -5
View File
@@ -55,15 +55,15 @@ void terminal::Parse(mavlink_message_t msg)
switch (msg.msgid) {
case MAVLINK_MSG_ID_SERIAL_CONTROL :
mavlink_serial_control_t serial_control;
mavlink_serial_control_t serial_control;
mavlink_msg_serial_control_decode(&msg,&serial_control);
mavlink_msg_serial_control_decode(&msg,&serial_control);
QByteArray str;
QByteArray str;
str.append((char *)serial_control.data,serial_control.count);
str.append((char *)serial_control.data,serial_control.count);
emit Recieve(str);
emit Recieve(str);
break;