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

mask lower bits for temp

This commit is contained in:
Ralph Metzler 2016-12-14 19:24:58 +01:00
parent fc4a807b4e
commit 1f77192d62

View File

@ -4454,13 +4454,13 @@ static ssize_t temp_show(struct device *device,
if (dev->link[0].info->type == DDB_MOD) {
if (dev->link[0].info->version == 2) {
temp = ddbreadl(dev, TEMPMON2_BOARD);
temp = 0xffff & ddbreadl(dev, TEMPMON2_BOARD);
temp = (temp * 1000) >> 8;
temp2 = ddbreadl(dev, TEMPMON2_FPGACORE);
temp2 = 0xffff & ddbreadl(dev, TEMPMON2_FPGACORE);
temp2 = (temp2 * 1000) >> 8;
temp3 = ddbreadl(dev, TEMPMON2_QAMCORE);
temp3 = 0xffff & ddbreadl(dev, TEMPMON2_QAMCORE);
temp3 = (temp3 * 1000) >> 8;
return sprintf(buf, "%d %d %d\n", temp, temp2, temp3);