MCPcopy Index your code
hub / github.com/FrameworkComputer/framework-system / active_fw_ver

Method active_fw_ver

framework_lib/src/ccgx/mod.rs:229–238  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

227 }
228
229 pub fn active_fw_ver(&self) -> String {
230 let active = self.active_fw();
231 // On 11th Gen we modified base version instead of app version
232 // And it's formatted as decimal instead of hex
233 if let Some(Platform::IntelGen11) = smbios::get_platform() {
234 active.base.to_dec_string()
235 } else {
236 active.app.to_string()
237 }
238 }
239}
240
241#[derive(Debug, PartialEq)]

Callers 1

compare_versionFunction · 0.80

Calls 3

get_platformFunction · 0.85
active_fwMethod · 0.80
to_dec_stringMethod · 0.80

Tested by

no test coverage detected