(&self)
| 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)] |
no test coverage detected