mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-03-16 16:07:07 +08:00
feat: 支持在线升级功能
This commit is contained in:
@@ -31,7 +31,6 @@ pub enum HidBackendType {
|
||||
None,
|
||||
}
|
||||
|
||||
|
||||
impl HidBackendType {
|
||||
/// Check if OTG backend is available on this system
|
||||
pub fn otg_available() -> bool {
|
||||
|
||||
@@ -232,7 +232,6 @@ pub enum WorkMode {
|
||||
CustomHid = 0x03,
|
||||
}
|
||||
|
||||
|
||||
/// CH9329 serial communication mode
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
|
||||
#[repr(u8)]
|
||||
@@ -247,7 +246,6 @@ pub enum SerialMode {
|
||||
Transparent = 0x02,
|
||||
}
|
||||
|
||||
|
||||
/// CH9329 configuration parameters
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct Ch9329Config {
|
||||
|
||||
@@ -16,8 +16,7 @@ use crate::events::{EventBus, SystemEvent};
|
||||
use crate::utils::LogThrottler;
|
||||
|
||||
/// HID health status
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
#[derive(Default)]
|
||||
#[derive(Debug, Clone, PartialEq, Default)]
|
||||
pub enum HidHealthStatus {
|
||||
/// Device is healthy and operational
|
||||
#[default]
|
||||
@@ -35,7 +34,6 @@ pub enum HidHealthStatus {
|
||||
Disconnected,
|
||||
}
|
||||
|
||||
|
||||
/// HID health monitor configuration
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct HidMonitorConfig {
|
||||
|
||||
Reference in New Issue
Block a user