Page 1 of 1

Duplicate *.Set() commands

Posted: 07 Jan 2015 04:14
by skiv71
Hi,

Say I have a battery powered device, due to wake... and I issue a *.Set() command for value 20.

This goes in the job queue, fine.

Then whilst the device is still sleeping, I change my mind and send another *.Set() for value 30.

I see that this goes in the job list after the previous job.

Surely it should take presidence and remove the previous set command?

Re: Duplicate *.Set() commands

Posted: 07 Jan 2015 10:23
by PoltoS
It is not easy to detect if you want to delete it or no. So we keep.

Example: make short pulse with a switch with Set(255) Set(0) will do the job, but if we remove Set(255) like you suggest, it will not be possible.