mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 09:01:54 +08:00
Add support for PiKVM Switch and related features
This commit introduces several new components and improvements: - Added Switch module with firmware update and configuration support - Implemented new media streaming capabilities - Updated various UI elements and CSS styles - Enhanced keyboard and mouse event handling - Added new validators and configuration options - Updated Python version support to 3.13 - Improved error handling and logging
This commit is contained in:
@@ -55,3 +55,11 @@ G_PROFILE = f"configs/{G_PROFILE_NAME}"
|
||||
|
||||
def get_gadget_path(gadget: str, *parts: str) -> str:
|
||||
return os.path.join(f"{env.SYSFS_PREFIX}/sys/kernel/config/usb_gadget", gadget, *parts)
|
||||
|
||||
|
||||
# =====
|
||||
def make_inquiry_string(vendor: str, product: str, revision: str) -> str:
|
||||
# Vendor: 8 ASCII chars
|
||||
# Product: 16
|
||||
# Revision: 4
|
||||
return "%-8.8s%-16.16s%-4.4s" % (vendor, product, revision)
|
||||
|
||||
Reference in New Issue
Block a user