RCC: Adjust check for dgpu status change

This commit is contained in:
Luke D. Jones
2023-01-11 18:17:45 +13:00
parent 53b854ef6d
commit e6a9c88695

View File

@@ -374,11 +374,13 @@ pub fn start_notifications(
}
}
if let Ok(mut lock) = page_states1.lock() {
lock.gfx_state.power_status = status;
lock.set_notified();
}
last_status = status;
}
if let Ok(mut lock) = page_states1.lock() {
lock.gfx_state.power_status = status;
}
last_status = status;
}
sleep(Duration::from_millis(500)).await;
}