Merge pull request #720 from mahkoh/jorth/auto-disable-vrr
metal: disable VRR if connector loses capability
This commit is contained in:
commit
8bcd37cf5b
1 changed files with 4 additions and 0 deletions
|
|
@ -1346,6 +1346,10 @@ fn create_connector_display_data(
|
||||||
Ok(c) => c.value == 1,
|
Ok(c) => c.value == 1,
|
||||||
Err(_) => false,
|
Err(_) => false,
|
||||||
};
|
};
|
||||||
|
if !vrr_capable && desired_state.vrr {
|
||||||
|
log::warn!("Connector has lost VRR capability");
|
||||||
|
desired_state.vrr = false;
|
||||||
|
}
|
||||||
{
|
{
|
||||||
let viable = match desired_state.eotf {
|
let viable = match desired_state.eotf {
|
||||||
BackendEotfs::Default => true,
|
BackendEotfs::Default => true,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue