Realign enums that had UnsupportedFeature to start at 0

This commit is contained in:
Vicki Pfau 2024-04-01 21:10:38 -07:00
parent c37bd22db0
commit 35e520712d
5 changed files with 24 additions and 24 deletions

View file

@ -22,11 +22,11 @@ const GPU_CLOCKS_PATH: &str = "/sys/class/drm/card0/device/pp_od_clk_voltage";
#[derive(PartialEq, Debug, Copy, Clone)]
#[repr(u32)]
pub enum GPUPerformanceLevel {
Auto = 1,
Low = 2,
High = 3,
Manual = 4,
ProfilePeak = 5,
Auto = 0,
Low = 1,
High = 2,
Manual = 3,
ProfilePeak = 4,
}
impl TryFrom<u32> for GPUPerformanceLevel {