This commit is contained in:
2026-03-24 09:10:11 +08:00
parent ab637b3431
commit 05a8782eea

View File

@@ -42,7 +42,7 @@ static bool sendTarget(Serial &serial, double yaw, uint16_t shoot_delay, bool fi
// Vofa串口验证 不用可以注释掉
char buff[128];
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) {