Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions framework_lib/src/power.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,11 @@ pub fn print_sensors(ec: &CrosEc) {
err => _ = print_err(err),
}

// If we can't detect it based on motionsense
// If we can't detect it based on motionsense, check the system family
// If family is unknown, assume it has
let als_family = matches!(
smbios::get_family(),
Some(PlatformFamily::Framework13) | Some(PlatformFamily::Framework16)
Some(PlatformFamily::Framework13) | Some(PlatformFamily::Framework16) | None
);

if has_als || als_family {
Expand Down
Loading