alex
public text v1 · immutable- if (joint->free_tp_source == FREE_TP_SOURCE_JOGWHEEL) {
- joint->free_tp_enable = 0;
- joint->free_tp_source = FREE_TP_SOURCE_NONE;
- }
+ if ((joint->free_tp_source == FREE_TP_SOURCE_JOGWHEEL) && (joint->free_tp_active == 0)) {
+ joint->free_tp_source = FREE_TP_SOURCE_NONE;
+ }