Skip to content

to use WITHOUT_BUTTON causes compile error #16

@mcdonaldajr

Description

@mcdonaldajr

when defining WITHOUT_BUTTON I got a compile error, bool accelerationEnabled undefined.
Looking at the code, the #endif included the declaration of accelerationEnabled;
by moving the #endif up one line, this fixed the problem.

#ifndef WITHOUT_BUTTON
volatile Button button;
bool doubleClickEnabled;
#endif
bool accelerationEnabled;
//#endif -- the was in the wrong place

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions