mirror of
https://github.com/modelec/odo_STM32.git
synced 2026-03-18 21:30:38 +01:00
buffer
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user