改错
This commit is contained in:
@@ -42,7 +42,7 @@ static bool sendTarget(Serial &serial, double yaw, uint16_t shoot_delay, bool fi
|
|||||||
// Vofa串口验证 不用可以注释掉
|
// Vofa串口验证 不用可以注释掉
|
||||||
char buff[128];
|
char buff[128];
|
||||||
int len = sprintf(buff,"channels: %f, %f, %d\n", yaw, shoot_delay, fire);
|
int len = sprintf(buff,"channels: %f, %f, %d\n", yaw, shoot_delay, fire);
|
||||||
return serial.WriteData(buff, len);
|
return serial.WriteData((unsigned char *)buff, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ArmorFinder::sendAntiTopTarget(double yaw, uint16_t shoot_delay, bool fire) {
|
bool ArmorFinder::sendAntiTopTarget(double yaw, uint16_t shoot_delay, bool fire) {
|
||||||
|
|||||||
Reference in New Issue
Block a user