Skip to content

Stops executing after some executions #24

@GerritK

Description

@GerritK

Hey guys,

my timer stops executing after some executions. Short breakdown of my code:

Timer<2, micros> timer;

void setup()
{
  timer.every(20000, updateLight1);
  timer.every(20500, updateLight2);
}

void loop()
{
  auto ticks = timer.tick();
  Serial.println(ticks);
}

// updateLight1 and updateLight2 reads and writes GPIOs

If I add Serial.println() to the updateLight1/updateLight2 function after the gpio doing it works as expected and executes forever. If not it stops after some executions and the serial ticks output shows 0.

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