Microchip_Examples/ClearPathModeExamples/ClearPath-MC_Series/FollowDigitalPosition/FollowDigitalPosition.cpp
void LockSensorCallback() {
    // A 1 ms delay is required in order to pass the correct filtered sensor
    // state.
    Delay_ms(1);
    motor.MotorInAState(LockSensor.State());
}
/*------------------------------------------------------------------------------
 * LockSensorCallback
 *
 *    Reads the state of the locking sensor and passes the state to the motor.
 *
 * Parameters:
 *    None
 *
 * Returns: None
 */
LockSensorCallback
Reads the state of the locking sensor and passes the state to the motor.

None

None
LockSensorCallback Reads the state of the locking sensor and passes the state to the motor . None None
void LockSensorCallback() {
    Delay_ms(1);
    motor.MotorInAState(LockSensor.State());
}
void LockSensorCallback ( ) { Delay_ms ( 1 ) ; motor . MotorInAState ( LockSensor . State ( ) ) ; }
LockSensorCallback
    Reads the state of the locking sensor and passes the state to the motor.
LockSensorCallback Reads the state of the locking sensor and passes the state to the motor .
// A 1 ms delay is required in order to pass the correct filtered sensor // state.