Skip to content

[BUG]: waitFor has been modified and the first input is now useless, not removing it because it will break things #179

@marcobarilari

Description

@marcobarilari

Is there an existing issue for this?

  • I have searched the existing issues

Expected Behavior

no wait for trigger inside

Current Behavior

this is before where waitForTrigger was giving problems

function waitFor(cfg, timeToWait)
    %
    % Will either wait for a certain amount of time or a number of triggers.
    %
    % USAGE::
    %
    %   waitFor(cfg, timeToWait)
    %
    % (C) Copyright 2020 CPP_PTB developers
    if cfg.pacedByTriggers.do
        waitForTrigger( ...
                       cfg, ...
                       cfg.keyboard.responseBox, ...
                       cfg.pacedByTriggers.quietMode, ...
                       timeToWait);
    else
        WaitSecs(timeToWait);
    end

end

Error message

No response

Environment

- OS:
- Matlab:
- SPM:

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions