forked from NG-SD-Plugins/PowerTools
Update limit enum names used in ron
This commit is contained in:
parent
e0ddee9e07
commit
04a94c902f
4 changed files with 9 additions and 3 deletions
|
@ -4,7 +4,9 @@ use super::RangeLimit;
|
||||||
#[derive(Serialize, Deserialize, Debug, Clone)]
|
#[derive(Serialize, Deserialize, Debug, Clone)]
|
||||||
//#[serde(tag = "target")]
|
//#[serde(tag = "target")]
|
||||||
pub enum BatteryLimitType {
|
pub enum BatteryLimitType {
|
||||||
|
#[serde(rename = "GabeBoy", alias = "SteamDeck")]
|
||||||
SteamDeck,
|
SteamDeck,
|
||||||
|
#[serde(rename = "GabeBoyAdvance", alias = "SteamDeckAdvance")]
|
||||||
SteamDeckAdvance,
|
SteamDeckAdvance,
|
||||||
Generic,
|
Generic,
|
||||||
Unknown,
|
Unknown,
|
||||||
|
|
|
@ -5,7 +5,9 @@ use super::RangeLimit;
|
||||||
#[derive(Serialize, Deserialize, Debug, Clone)]
|
#[derive(Serialize, Deserialize, Debug, Clone)]
|
||||||
//#[serde(tag = "target")]
|
//#[serde(tag = "target")]
|
||||||
pub enum CpuLimitType {
|
pub enum CpuLimitType {
|
||||||
|
#[serde(rename = "GabeBoy", alias = "SteamDeck")]
|
||||||
SteamDeck,
|
SteamDeck,
|
||||||
|
#[serde(rename = "GabeBoyAdvance", alias = "SteamDeckAdvance")]
|
||||||
SteamDeckAdvance,
|
SteamDeckAdvance,
|
||||||
Generic,
|
Generic,
|
||||||
GenericAMD,
|
GenericAMD,
|
||||||
|
|
|
@ -4,7 +4,9 @@ use super::RangeLimit;
|
||||||
#[derive(Serialize, Deserialize, Debug, Clone)]
|
#[derive(Serialize, Deserialize, Debug, Clone)]
|
||||||
//#[serde(tag = "target")]
|
//#[serde(tag = "target")]
|
||||||
pub enum GpuLimitType {
|
pub enum GpuLimitType {
|
||||||
|
#[serde(rename = "GabeBoy", alias = "SteamDeck")]
|
||||||
SteamDeck,
|
SteamDeck,
|
||||||
|
#[serde(rename = "GabeBoyAdvance", alias = "SteamDeckAdvance")]
|
||||||
SteamDeckAdvance,
|
SteamDeckAdvance,
|
||||||
Generic,
|
Generic,
|
||||||
GenericAMD,
|
GenericAMD,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
Limits(
|
Limits(
|
||||||
cpu: Limit(
|
cpu: Limit(
|
||||||
provider: SteamDeck,
|
provider: GabeBoy,
|
||||||
limits: GenericCpusLimit(
|
limits: GenericCpusLimit(
|
||||||
cpus: [GenericCpuLimit(
|
cpus: [GenericCpuLimit(
|
||||||
clock_min: Some(RangeLimit(
|
clock_min: Some(RangeLimit(
|
||||||
|
@ -95,7 +95,7 @@ Limits(
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
gpu: Limit(
|
gpu: Limit(
|
||||||
provider: SteamDeck,
|
provider: GabeBoy,
|
||||||
limits: GenericGpuLimit(
|
limits: GenericGpuLimit(
|
||||||
fast_ppt: Some(RangeLimit(
|
fast_ppt: Some(RangeLimit(
|
||||||
min: Some(1000000),
|
min: Some(1000000),
|
||||||
|
@ -125,7 +125,7 @@ Limits(
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
battery: Limit(
|
battery: Limit(
|
||||||
provider: SteamDeck,
|
provider: GabeBoy,
|
||||||
limits: GenericBatteryLimit(
|
limits: GenericBatteryLimit(
|
||||||
charge_rate: Some(RangeLimit(
|
charge_rate: Some(RangeLimit(
|
||||||
min: Some(250),
|
min: Some(250),
|
||||||
|
|
Loading…
Reference in a new issue