bugfixes
This commit is contained in:
parent
ba35bd7c9d
commit
c87f16a726
@ -598,7 +598,7 @@ void StatLedErr(int offtime, int ontime){
|
|||||||
}
|
}
|
||||||
if (newMillis - oldmillis >= offtime+ontime){{
|
if (newMillis - oldmillis >= offtime+ontime){{
|
||||||
#ifdef DLED
|
#ifdef DLED
|
||||||
controlDLED(StatLedPin, 0)
|
controlDLED(StatLedPin, 0);
|
||||||
#endif
|
#endif
|
||||||
#ifndef DLED
|
#ifndef DLED
|
||||||
digitalWrite(StatLedPin, LOW);
|
digitalWrite(StatLedPin, LOW);
|
||||||
|
@ -192,7 +192,7 @@ min_update_interval = 100
|
|||||||
# setup Input halpins
|
# setup Input halpins
|
||||||
for port in range(Inputs):
|
for port in range(Inputs):
|
||||||
c.newpin("din.{}".format(InPinmap[port]), hal.HAL_BIT, hal.HAL_OUT)
|
c.newpin("din.{}".format(InPinmap[port]), hal.HAL_BIT, hal.HAL_OUT)
|
||||||
c.newpin("din.{}-invert".format(InPinmap[port]), hal.HAL_BIT, hal.HAL_RW)
|
c.newparam("din.{}-invert".format(InPinmap[port]), hal.HAL_BIT, hal.HAL_RW)
|
||||||
|
|
||||||
# setup Output halpins
|
# setup Output halpins
|
||||||
for port in range(Outputs):
|
for port in range(Outputs):
|
||||||
|
Loading…
Reference in New Issue
Block a user