Skip to content
Merged
Show file tree
Hide file tree
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: 1 addition & 2 deletions src/pymc_core/hardware/gpio_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
import sys
import threading
import time
import os
from typing import Callable, Dict, Optional

try:
from periphery import GPIO, EdgeEvent

PERIPHERY_AVAILABLE = True
except ImportError:
# Mock GPIO classes for testing/non-hardware environments
Expand All @@ -24,7 +24,6 @@
# Optional libgpiod support
try:
import gpiod

GPIOD_AVAILABLE = True
except Exception:
GPIOD_AVAILABLE = False
Expand Down
2 changes: 1 addition & 1 deletion src/pymc_core/hardware/sx1262_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def __init__(
is_waveshare: Use alternate initialization needed for Waveshare HAT
use_dio3_tcxo: Enable DIO3 TCXO control (default: False)
dio3_tcxo_voltage: TCXO reference voltage in volts (default: 1.8)
use_dio2_rf: Enable DIO2 as RF switch control (default: False)
use_dio2_rf: Enable DIO2 as RF switch control (default: False)
"""
# Check if there's already an active instance and clean it up
if SX1262Radio._active_instance is not None:
Expand Down