wall alignment

This commit is contained in:
acki
2025-11-17 19:50:25 +01:00
parent 25892f0b71
commit b8626d5b93
3 changed files with 4 additions and 4 deletions

View File

@@ -51,7 +51,7 @@ void Comm_SetAction(uint8_t time);
uint8_t Comm_GetAction();
void Comm_SetAlignement(uint8_t action);
void Comm_SetAlignment(uint8_t action);
#ifdef __cplusplus
}

View File

@@ -142,7 +142,7 @@ uint8_t Comm_GetAction() {
return bot.action;
}
void Comm_SetAlignement(uint8_t action) {
void Comm_SetAlignment(uint8_t action) {
float x = bot.pos.x;
float y = bot.pos.y;

View File

@@ -297,7 +297,7 @@ void USB_Comm_Process(void) {
snprintf(response, sizeof(response), "OK;ACTION;%d\n", action);
USB_Comm_Send(response);
}
else if (strcmp(token, "ALIGNEMENT") == 0) {
else if (strcmp(token, "ALIGNMENT") == 0) {
token = strtok(NULL, ";");
uint8_t action;
@@ -315,7 +315,7 @@ void USB_Comm_Process(void) {
action = 4;
}
Comm_SetAlignement(action);
Comm_SetAlignment(action);
char response[64];
snprintf(response, sizeof(response), "OK;ACTION;%d\n", action);