resources/libtiny/Servo.cpp
//=============================================================================
// FUNCTION:    bool isEnabled(uint8_t servoNumber)
//
// DESCRIPTION: Determines if a servo slot is enabled.
//
// INPUT:       servoNumber - which servo slot to check
//
// RETURNS:     true if the slot is enabled
//              false if it is disabled or not allocated to a servo.
//
//=============================================================================
bool isEnabled(uint8_t servoNumber)
DESCRIPTION: Determines if a servo slot is enabled.

which servo slot to check

true if the slot is enabled
false if it is disabled or not allocated to a servo.
bool isEnabled ( uint8_t servoNumber ) DESCRIPTION : Determines if a servo slot is enabled . which servo slot to check true if the slot is enabled false if it is disabled or not allocated to a servo .
bool ServoSequencer::isEnabled(uint8_t servoNumber)
{
    if( (servoNumber < MAX_SERVOS      ) &&
        (servoRegistry[servoNumber].slotOccupied == true)   )
    {
        return servoRegistry[servoNumber].enabled;
    }
    else
    {
        return false;
    }
}
bool ServoSequencer :: isEnabled ( uint8_t servoNumber ) { if ( ( servoNumber < MAX_SERVOS ) && ( servoRegistry [ servoNumber ] . slotOccupied == true ) ) { return servoRegistry [ servoNumber ] . enabled ; } else { return false ; } }
FUNCTION:    bool isEnabled(uint8_t servoNumber)
DESCRIPTION: Determines if a servo slot is enabled.
FUNCTION : bool isEnabled ( uint8_t servoNumber ) DESCRIPTION : Determines if a servo slot is enabled .
//make sure we got a valid slot number and the slot is registered to a servo //Servo number is out of range or is not allocate to a servo. //So therefore it is not enabled.