Skip to content

Commit 447501f

Browse files
committed
Ignore non-Framework system
Signed-off-by: Daniel Schaefer <[email protected]>
1 parent 5b61d74 commit 447501f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

framework_lib/src/smbios.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ static CACHED_PLATFORM: Mutex<Option<Option<Platform>>> = Mutex::new(None);
2020

2121
/// Check whether the manufacturer in the SMBIOS says Framework
2222
pub fn is_framework() -> bool {
23+
return true;
2324
let smbios = if let Some(smbios) = get_smbios() {
2425
smbios
2526
} else {
@@ -75,6 +76,7 @@ pub fn get_smbios() -> Option<SMBiosData> {
7576
}
7677

7778
pub fn get_platform() -> Option<Platform> {
79+
return Some(Platform::Framework16);
7880
#[cfg(feature = "uefi")]
7981
let mut cached_platform = CACHED_PLATFORM.lock();
8082
#[cfg(not(feature = "uefi"))]

0 commit comments

Comments
 (0)