This commit is contained in:
acki
2026-01-26 20:12:54 +01:00
parent e3286edaa4
commit e66ab5d479
4 changed files with 8 additions and 6 deletions

View File

@@ -150,7 +150,7 @@ void DiffBot::update(float dt) {
targets[index].active = false;
motor.stop(true);
char log[32];
char log[64];
sprintf(log, "SET;WAYPOINT;REACH;%d\n", index);
CDC_Transmit_FS((uint8_t*)log, strlen(log));
@@ -164,7 +164,7 @@ void DiffBot::update(float dt) {
if (std::fabs(dx) < precisePos && std::fabs(dy) < precisePos) {
char log[32];
char log[64];
sprintf(log, "SET;WAYPOINT;REACH;%d\n", index);
CDC_Transmit_FS((uint8_t*)log, strlen(log));