Skip to content

Commit d4c0548

Browse files
committed
power: No VCCGT temp sensor on gen11
Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent 428fc82 commit d4c0548

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

framework_lib/src/power.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,12 @@ pub fn print_thermal(ec: &CrosEc) {
214214
println!(" F75303_DDR: {:>4}", TempSensor::from(temps[2]));
215215
println!(" Battery: {:>4}", TempSensor::from(temps[3]));
216216
println!(" PECI: {:>4}", TempSensor::from(temps[4]));
217-
println!(" F57397_VCCGT: {:>4}", TempSensor::from(temps[5]));
217+
if matches!(
218+
platform,
219+
Some(Platform::IntelGen12) | Some(Platform::IntelGen13)
220+
) {
221+
println!(" F57397_VCCGT: {:>4}", TempSensor::from(temps[5]));
222+
}
218223
}
219224
Some(Platform::Framework13Amd7080 | Platform::Framework16Amd7080) => {
220225
println!(" F75303_Local: {:>4}", TempSensor::from(temps[0]));

0 commit comments

Comments
 (0)