Skip to content
Commit 597cd63b authored by Phil Elwell's avatar Phil Elwell
Browse files

gpio-fsm: Clamp the delay time to zero



The sysfs delay_ms value is calculated live, and it is possible for
the time left to appear to be negative briefly if the timer handling
hasn't completed. Ensure the displayed value never goes below zero,
for the sake of appearances.

Signed-off-by: default avatarPhil Elwell <phil@raspberrypi.com>
parent 6173e646
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment