Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
rename WMI to IOCTL
Browse files Browse the repository at this point in the history
  • Loading branch information
ruihe774 committed Feb 5, 2024
1 parent 1fc1878 commit 45d1759
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src-tauri/monitor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ pub fn get_monitors() -> Vec<Monitor> {
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub enum Interface {
DDCCI,
WMI,
IOCTL,
}

#[derive(Debug, Copy, Clone, PartialEq, Eq)]
Expand Down Expand Up @@ -342,7 +342,7 @@ impl Monitor {
ioctl_query_display_brightness(self.hdevice).map(|value| Reply {
current: value as u32,
maximum: 100,
source: Interface::WMI,
source: Interface::IOCTL,
})
} else {
Err(ERROR_NOT_SUPPORTED.into())
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/monitors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ pub async fn get_monitor_feature(
maximum,
source: match source {
Interface::DDCCI => "ddcci",
Interface::WMI => "wmi",
Interface::IOCTL => "ioctl",
},
})
}
Expand Down

0 comments on commit 45d1759

Please sign in to comment.