mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-23 19:20:41 +00:00
Refactoring some of the i2c boilerplate (#1498)
* Refactoring some of the i2c boilerplate * Default value * Debug statement
This commit is contained in:
@@ -8,8 +8,11 @@ private:
|
||||
OneWire *oneWire = NULL;
|
||||
DS18B20 *ds18b20 = NULL;
|
||||
|
||||
protected:
|
||||
virtual void setup() override;
|
||||
|
||||
public:
|
||||
DallasSensor();
|
||||
virtual int32_t runOnce() override;
|
||||
virtual bool getMeasurement(Telemetry *measurement) override;
|
||||
virtual bool getMetrics(Telemetry *measurement) override;
|
||||
};
|
||||
Reference in New Issue
Block a user