This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Resident script pump circulation
#42
Try adding log to all checkwrite calls, like this:
Code:
if opened then
    fullyOpened = (os.microtime() - firstTimestamp) >= openingValveTime
    if fullyOpened then
        log(grp.checkwrite(pumpGA, true))
        nextCalculationAfter = minInterval
    else
        log(grp.checkwrite(pumpGA, false))
        nextCalculationAfter = openingValveTime + 1 - (os.microtime() - firstTimestamp) -- run a little after possible change
    end
else
    log(grp.checkwrite(pumpGA, false))
    nextCalculationAfter = openingValveTime + 1
end
Reply


Messages In This Thread
RE: Resident script pump circulation - by admin - 24.10.2018, 13:42

Forum Jump: