Skip to content

Out of Scope Definition of getUnixTime #92

Closed
@aenertia

Description

in wled10_ntp

the set countdown block Line -
void setCountdown() { countdownTime = timezones[currentTimezone]->toUTC(getUnixTime(countdownHour, countdownMin, countdownSec, countdownDay, countdownMonth, countdownYear)); if (countdownTime - now() > 0) countdownOverTriggered = false; }

produces a compilation error relating to an out of scope function 'getUnixTime'

I believe this needs to be declared within the function as a private variable prior to it being called - but my C foo is lacking.

Interestingly this code compiles fine under platformio (esp32 target) but not with the arduino IDE.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    staleThis issue will be closed soon because of prolonged inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions