Skip to content

Commit

Permalink
Fix, device name on OdriveCan axis_state
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerOrRobert committed Nov 20, 2024
1 parent 66de7df commit 3e0d7c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/protodevice/src/device/ODriveCan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3e0d7c1

Please sign in to comment.