Closed mrmin24 closed 7 years ago
Hi, this can be changed easily in the standard already in sonoff.ino. OK?
Thanks for pointing out the pulsetimers. Haven't seen them so far. Yes great help and make it simpler. Will enable this for my project also.
Yes, I will test this too. I suppose it is worth having a" IFDEF USE_PCF8574" to adjust these to 8 or more.
There is an additional hardcoded line in sonoff.ino: line 1373 somewhere here:
This is hardcoded &3 (Binary 11) and needs to be flexible.
pulse_timer[(device -1)&((1<<MAX_PULSETIMERS)-1)] = (power & mask) ? sysCfg.pulsetime[(device -1)&((1<<MAX_PULSETIMERS)-1)] : 0;
I tested your latest baseline and the timers are working, but it seems that if you activate the nth timer and the n + 4th time (e.g.1 and 5 or 2 and 6) at the same time, the nth relay never switches off. If you activate any other timer with nth timer, it works fine
Fixed with 5.1.4 update
Hi,
There are still only 4 pulsetimers available for PCF8574 setup. This is not ideal especially for irrigation.
Thanks