show temperature on sleep

This commit is contained in:
Ralph Metzler 2015-09-24 23:29:40 +02:00
parent e2145682e2
commit 8402c7ab05
1 changed files with 4 additions and 0 deletions

View File

@ -777,6 +777,10 @@ static int sleep(struct dvb_frontend *fe)
struct tda_state *state = fe->tuner_priv;
Standby(state);
write_reg(state, THERMO_2, 0x01);
read_reg1(state, THERMO_1);
write_reg(state, THERMO_2, 0x00);
printk("sleep: temp = %u\n", state->Regs[THERMO_1]);
return 0;
}