Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/pymc_core/hardware/gpio_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

try:
from periphery import GPIO, EdgeEvent
# We don't need the realtime event clock for our use case and it breaks support on older kernels, so disable it if present
import periphery.gpio_cdev2 as _cdev
_cdev.Cdev2GPIO._GPIO_V2_LINE_FLAG_EVENT_CLOCK_REALTIME = 0
PERIPHERY_AVAILABLE = True
except ImportError:
# Mock GPIO classes for testing/non-hardware environments
Expand Down