Open Gisbert1 opened 2 years ago
_OneWire ds(DALLAS_SENSORPIN); seems to be a relict of previous tests and could be removed from the source. If not referenced by any instantiation object, might be removed by the optimization of the Arduino C++ compiler. So it might cause no harm to code space, eventually needs some additional heap memory.
Code zwingend notwendig ist. Ist das richtig, und warum? I used by: //--- [2] read Dallas-Sensor float theta = ReadSingleOneWireSensor(dallas);
The dallas instance could be changed to ds. But both objects are pointer to the same piece of code. Unless there is no code space problem on the ATtiny, it is harmless but indeed redundant. The sketch worked for me in this configuration, so i didn't notice my fault and moved on to the next project.
Thank you for testing and using this code and sorry for that "inconvenience".
Jürgen
Hallo Jürgen,
ich habe diesen Sketch für meine Zwecke benutzt. Du benutzt sowohl in Zeile 255
OneWire ds(DALLAS_SENSOR_PIN);
als auch in Zeile 269OneWire dallas(DALLAS_SENSOR_PIN);
Ich vermute, dass letzteres überflüssig ist. Kannst du dazu etwas sagen?Ich nehme an, dass dieser Code zwingend notwendig ist. Ist das richtig, und warum?
Viele Grüße Gisbert