retry on crc error for onewire

This commit is contained in:
Your Name
2021-05-27 21:43:15 +02:00
parent 3d45a3fca3
commit 057e2b37c3
3 changed files with 64 additions and 40 deletions

View File

@@ -67,9 +67,8 @@ typedef uint8_t DeviceAddress[8];
class DS2438 {
public:
DS2438(OneWire *ow, float currentShunt);
DS2438(OneWire *ow, uint8_t *address);
DS2438(OneWire *ow, float currentShunt, int retryOnCRCError);
void begin();
void update();
double getTemperature();
@@ -94,6 +93,7 @@ class DS2438 {
float _voltageB;
float _current;
float _currentShunt;
int _retryOnCRCError;
long _CCA;
long _DCA;
long _ICA;