We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ceaa224 commit 0f56413Copy full SHA for 0f56413
drivers/hwmon/aquacomputer_d5next.c
@@ -953,7 +953,10 @@ static int aqc_legacy_read(struct aqc_data *priv)
953
for (i = 0; i < priv->num_temp_sensors; i++) {
954
sensor_value = get_unaligned_le16(priv->buffer + priv->temp_sensor_start_offset +
955
i * AQC_SENSOR_SIZE);
956
- priv->temp_input[i] = sensor_value * 10;
+ if (sensor_value == AQC_SENSOR_NA)
957
+ priv->temp_input[i] = -ENODATA;
958
+ else
959
+ priv->temp_input[i] = sensor_value * 10;
960
}
961
962
/* Special-case sensor readings */
0 commit comments