Skip to content
Commit 57c80792 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 b6c4c27b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment