When I compile my code the compiler shows me this message.
using temporary as lvalue [-fpermissive]
sensors.get(i).runningMedian = ds18b20.getTempCByIndex(i);
sensors is a linke liste that store sensor which is struct. runningMedian is the property/field inside the struct.
I don’t know why this happen. This problem doesn’t show up when the sensor was created and I was trying to assign the value to it, but the code after that start happen problem.
I imagine your sensors.get(i) is returning a struct or class of some kind. This will create a temporary variable since it’s got to be stored somewhere.