删除多余线程,减少CPU支出
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user