diff --git a/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/CurrentTransformer.cpp b/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/CurrentTransformer.cpp index ce5c835..5378f07 100644 --- a/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/CurrentTransformer.cpp +++ b/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/CurrentTransformer.cpp @@ -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; diff --git a/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/CurrentTransformer.hpp b/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/CurrentTransformer.hpp index daf0e9f..fdd5c8d 100644 --- a/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/CurrentTransformer.hpp +++ b/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/CurrentTransformer.hpp @@ -12,7 +12,7 @@ class CurrentTransformer { public: CurrentTransformer(AnalogCard* analogCard, uint8_t pin, float *voltage, std::function 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;