1
0
mirror of https://github.com/DigitalDevices/dddvb.git synced 2023-10-10 13:37:43 +02:00

show temperature on sleep

This commit is contained in:
Ralph Metzler 2015-09-24 23:29:40 +02:00
parent e2145682e2
commit 8402c7ab05

View File

@ -777,6 +777,10 @@ static int sleep(struct dvb_frontend *fe)
struct tda_state *state = fe->tuner_priv; struct tda_state *state = fe->tuner_priv;
Standby(state); 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; return 0;
} }