From 946ef7ac08f43b783bb8b5e0eacf38d5e5349e9c Mon Sep 17 00:00:00 2001 From: Koen Heltzel Date: Tue, 17 Dec 2013 12:42:28 +0100 Subject: [PATCH] A schedule request with a 0x0 schedule is now converted to a disable command automatically, this fixes unexpected LED flashing in lampshows where schedules can be 0x0. http://www.pinballcontrollers.com/forum/index.php?topic=251.msg6791#msg6791 http://www.pinballcontrollers.com/forum/index.php?topic=802.msg6783#msg6783 --- src/pinproc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pinproc.cpp b/src/pinproc.cpp index 20cbc34..3e01757 100644 --- a/src/pinproc.cpp +++ b/src/pinproc.cpp @@ -313,7 +313,7 @@ void PRDriverStateFuturePulse(PRDriverState *driver, uint8_t milliseconds, uint3 } void PRDriverStateSchedule(PRDriverState *driver, uint32_t schedule, uint8_t cycleSeconds, bool_t now) { - driver->state = 1; + driver->state = schedule != 0; driver->timeslots = schedule; driver->waitForFirstTimeSlot = !now; driver->outputDriveTime = cycleSeconds;