This fixes #8098.  It now gets the digital inputs dynamically.