WalterZambotti replied to the topic 'Canon DSLR focus module' in the forum. 8 months ago

Having a look through he code and noticed:

bool Focus::focusIn(int ms)
{
    if (ms <= 0)
        ms = focusTicks->value();
    return changeFocus(-ms);
}

bool Focus::focusOut(int ms)
{
    if (ms <= 0)
        ms = focusTicks->value();
    return changeFocus(ms);
}

// Routine to manage focus movements. All moves are now subject to overscan
// + amount indicates a movement out; - amount indictaes a movement in
bool Focus::changeFocus(int amount, bool updateDir)
{

changeFocus is been called with the incorrect number of parameters on lines 1804 and 1811. Those calls don't pass an updateDir. But my C++ is not very strong so though I'd ask!

Read More...