mirror of
https://github.com/preble/libpinproc
synced 2026-02-22 18:15:25 +01:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user