修复motor_rm
This commit is contained in:
parent
b7f2539321
commit
4cf349cf14
@ -56,12 +56,12 @@ static int8_t MOTOR_RM_GetLogicalIndex(uint16_t can_id, MOTOR_RM_Module_t module
|
|||||||
switch (module) {
|
switch (module) {
|
||||||
case MOTOR_M2006:
|
case MOTOR_M2006:
|
||||||
case MOTOR_M3508:
|
case MOTOR_M3508:
|
||||||
if (can_id >= M3508_M2006_FB_ID_BASE && can_id < M3508_M2006_FB_ID_BASE + 7) {
|
if (can_id >= M3508_M2006_FB_ID_BASE && can_id <= M3508_M2006_FB_ID_BASE + 7) {
|
||||||
return can_id - M3508_M2006_FB_ID_BASE;
|
return can_id - M3508_M2006_FB_ID_BASE;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MOTOR_GM6020:
|
case MOTOR_GM6020:
|
||||||
if (can_id >= GM6020_FB_ID_BASE && can_id < GM6020_FB_ID_BASE + 6) {
|
if (can_id >= GM6020_FB_ID_BASE && can_id <= GM6020_FB_ID_BASE + 6) {
|
||||||
return can_id - GM6020_FB_ID_BASE + 4;
|
return can_id - GM6020_FB_ID_BASE + 4;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user