更改按键,已经添加msp重启

This commit is contained in:
OPTOC
2025-10-28 14:55:50 +08:00
parent 5932e44c3e
commit b53898c6b5
6 changed files with 48 additions and 11 deletions

View File

@@ -448,7 +448,15 @@ void fc_put_ack(void)
// printf("ACK\n");
}
// MSP重启命令
void msp_send_reboot(msp_port_t *msp)
{
msp_send2(msp, MSP_REBOOT, NULL, 0);
}
void msp_request_type(msp_port_t *msp)
{
msp_send2(msp, MSP_FC_VARIANT, NULL, 0);
}
// MSP数据读取,并根据读取的数据进行处理
void msp_recv_loop(msp_port_t *msp)
{