forked from NG-SD-Plugins/PowerTools
Add thing at startup in debug builds (for testing)
This commit is contained in:
parent
fa03202f6b
commit
3e8a263f4e
2 changed files with 9 additions and 0 deletions
|
@ -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));
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue