Closed nickbroon closed 5 years ago
The function doesn't retrieve the temperature offset from the sensor, therefore it is set to none ( see function description of the get_sensor_settings e.g. here )
So it might be a bit confusing but it is the currently expected result. :thinking:
@nickbroon good point, I see why this is confusing. As @caemor stated this is kind of expected since this temperature offset configuration is not stored in the sensor. Here are some options I see:
TphSett
struct but separately to distinguish itTphSett.temperature_offset
I favor 1. or 2. but can not decide if it's really relevant to distinguish if this value comes from the sensor or not. What do you both think ? More ideas are welcome =).
I think 1 would be preferable, as I don't think there is need to distinguish what is stored in the hardware and what is stored in the driver. I tend to think of the driver and hardware as one unit from an api perspective.
I agree with nick that 1 would be the best from a user view
Fixed by 0c90c96a854d2554d071c8269af8ad546cf36706 and released on 0.4.2
The Sensor Settings logged do appear to match those explicitly set in the example code. For example in the below the
temperature_offset
is logged asNone
but the example code sets it to-2.2
. Is there something wrong here?