adjust fram address size
This commit is contained in:
parent
6c418115ec
commit
7a67732daf
|
@ -8,7 +8,7 @@ CurrentTransformer::CurrentTransformer(AnalogCard* analogCard, uint8_t pin, floa
|
|||
this->adcToCurrent = adcToCurrent;
|
||||
}
|
||||
|
||||
void CurrentTransformer::bindFRAM(FRAM *fram, uint8_t framAddress)
|
||||
void CurrentTransformer::bindFRAM(FRAM *fram, uint32_t framAddress)
|
||||
{
|
||||
this->fram = fram;
|
||||
this->framAddress = framAddress;
|
||||
|
|
|
@ -12,7 +12,7 @@ class CurrentTransformer
|
|||
{
|
||||
public:
|
||||
CurrentTransformer(AnalogCard* analogCard, uint8_t pin, float *voltage, std::function<float(uint16_t)> adcToCurrent, uint32_t conversionInterval);
|
||||
void bindFRAM(FRAM *fram, uint8_t framAddress); // Takes 16 bytes of FRAM (long double energy)
|
||||
void bindFRAM(FRAM *fram, uint32_t framAddress); // Takes 16 bytes of FRAM (long double energy)
|
||||
void begin();
|
||||
void loop();
|
||||
void beginConversion();
|
||||
|
@ -30,7 +30,7 @@ class CurrentTransformer
|
|||
private:
|
||||
AnalogCard* analogCard;
|
||||
uint8_t pin;
|
||||
uint8_t framAddress;
|
||||
uint32_t framAddress;
|
||||
FRAM *fram;
|
||||
uint32_t conversionInterval;
|
||||
bool autoSave;
|
||||
|
|
Loading…
Reference in New Issue