Skip to content

Commit a5782fd

Browse files
committed
Fixed naming inconsistency between LED and DXL_LED_* items
1 parent fd01361 commit a5782fd

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/Dynamixel2Arduino.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ bool Dynamixel2Arduino::setLedState(uint8_t id, bool state)
617617
break;
618618

619619
default:
620-
ret = writeControlTableItem(ControlTableItem::LED, id, state);
620+
ret = writeControlTableItem(ControlTableItem::DXL_LED, id, state);
621621
break;
622622
}
623623

src/actuator.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const ModelControlTableInfo_t control_table_1_0[] PROGMEM = {
3333
{ControlTableItem::SHUTDOWN, 18, 1},
3434

3535
{ControlTableItem::TORQUE_ENABLE, 24, 1},
36-
{ControlTableItem::LED, 25, 1},
36+
{ControlTableItem::DXL_LED, 25, 1},
3737
{ControlTableItem::CW_COMPLIANCE_MARGIN, 26, 1},
3838
{ControlTableItem::CCW_COMPLIANCE_MARGIN, 27, 1},
3939
{ControlTableItem::CW_COMPLIANCE_SLOPE, 28, 1},
@@ -85,7 +85,7 @@ const ModelControlTableInfo_t control_table_1_1[] PROGMEM = {
8585
{ControlTableItem::RESOLUTION_DIVIDER, 22, 1},
8686

8787
{ControlTableItem::TORQUE_ENABLE, 24, 1},
88-
{ControlTableItem::LED, 25, 1},
88+
{ControlTableItem::DXL_LED, 25, 1},
8989
{ControlTableItem::D_GAIN, 26, 1},
9090
{ControlTableItem::I_GAIN, 27, 1},
9191
{ControlTableItem::P_GAIN, 28, 1},
@@ -144,7 +144,7 @@ const ModelControlTableInfo_t xl320_control_table[] PROGMEM = {
144144
{ControlTableItem::SHUTDOWN, 18, 1},
145145

146146
{ControlTableItem::TORQUE_ENABLE, 24, 1},
147-
{ControlTableItem::LED, 25, 1},
147+
{ControlTableItem::DXL_LED, 25, 1},
148148
{ControlTableItem::D_GAIN, 27, 1},
149149
{ControlTableItem::I_GAIN, 28, 1},
150150
{ControlTableItem::P_GAIN, 29, 1},
@@ -197,7 +197,7 @@ const ModelControlTableInfo_t control_table_2_0[] PROGMEM = {
197197
{ControlTableItem::SHUTDOWN, 63, 1},
198198

199199
{ControlTableItem::TORQUE_ENABLE, 64, 1},
200-
{ControlTableItem::LED, 65, 1},
200+
{ControlTableItem::DXL_LED, 65, 1},
201201
{ControlTableItem::STATUS_RETURN_LEVEL, 68, 1},
202202
{ControlTableItem::REGISTERED_INSTRUCTION, 69, 1},
203203
{ControlTableItem::HARDWARE_ERROR_STATUS, 70, 1},
@@ -475,7 +475,7 @@ const ModelControlTableInfo_t y_control_table[] PROGMEM = {
475475
{ControlTableItem::PROFILE_ACCELERATION_TIME, 248, 4},
476476
{ControlTableItem::PROFIIE_TIME, 252, 4},
477477
{ControlTableItem::TORQUE_ENABLE, 512, 1},
478-
{ControlTableItem::LED, 513, 1},
478+
{ControlTableItem::DXL_LED, 513, 1},
479479
{ControlTableItem::PWM_OFFSET, 516, 2},
480480
{ControlTableItem::CURRENT_OFFSET, 518, 2},
481481
{ControlTableItem::VELOCITY_OFFSET, 520, 4},

src/actuator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ namespace ControlTableItem{
331331
SHUTDOWN,
332332

333333
TORQUE_ENABLE,
334-
LED,
334+
DXL_LED,
335335
DXL_LED_RED,
336336
DXL_LED_GREEN,
337337
DXL_LED_BLUE,

0 commit comments

Comments
 (0)