Add thing at startup in debug builds (for testing)

This commit is contained in:
NGnius (Graham) 2024-01-28 12:13:55 -05:00
parent fa03202f6b
commit 3e8a263f4e
2 changed files with 9 additions and 0 deletions

View file

@ -334,6 +334,12 @@ fn main() -> Result<(), ()> {
utility::ioperm_power_ec();
#[cfg(debug_assertions)]
std::thread::spawn(|| {
utility::ioperm_power_ec();
settings::steam_deck::util::flash_led();
});
if let Err(e) = loaded_settings.on_set() {
e.iter()
.for_each(|e| log::error!("Startup Settings.on_set() error: {}", e));

View file

@ -2,6 +2,9 @@ mod battery;
mod cpu;
mod gpu;
mod power_dpm_force;
#[cfg(debug_assertions)]
pub mod util;
#[cfg(not(debug_assertions))]
mod util;
pub use battery::Battery;