From 3e0d7c188ef00d80ba3ddf10a3e4b4f159a74b24 Mon Sep 17 00:00:00 2001 From: RogerOrRobert Date: Wed, 20 Nov 2024 17:26:41 +0100 Subject: [PATCH] Fix, device name on OdriveCan axis_state --- packages/protodevice/src/device/ODriveCan.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/protodevice/src/device/ODriveCan.ts b/packages/protodevice/src/device/ODriveCan.ts index 23c337e08..f9b7f589c 100644 --- a/packages/protodevice/src/device/ODriveCan.ts +++ b/packages/protodevice/src/device/ODriveCan.ts @@ -378,7 +378,7 @@ uint8_t axis_state = x[4]; ESP_LOGD("canbus", "Axis State: %d", axis_state); // Update the axis state numeric sensor -id(motor1_axis_state_numeric).publish_state(axis_state); +id(${this.name}_axis_state_numeric).publish_state(axis_state); // Map the numeric state to a string and update the text sensor if (axis_state == 1) {