Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cancel All Alarms #10

Open
viamgr opened this issue Jan 7, 2021 · 1 comment
Open

Cancel All Alarms #10

viamgr opened this issue Jan 7, 2021 · 1 comment

Comments

@viamgr
Copy link

viamgr commented Jan 7, 2021

Is there any way to free whole alarms by a function? Currently, we should store the ID of that alarm in an extra variable.

@jaggil
Copy link

jaggil commented Jan 29, 2021

I do this:

Serial.printf("Total Cron ID´s: %d \n",Cron.count());     //Total id´s before
for (byte id = 0; id < 255; id++)  { Cron.free(id);  }    //Cron_IDs are numbered from 0 to 254  
Serial.printf("Total Cron ID´s: %d \n",Cron.count());     //Total id´s after, must be 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants