You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in file: EEPROMex.cpp
in function:
void EEPROMClassEx::setMemPool(int base, int memSize) {
//Base can only be adjusted if no addresses have already been issued
if (_nextAvailableaddress == _base)
_base = base;
_nextAvailableaddress=_base; //<- this is outside if conditional statement: is right?
The text was updated successfully, but these errors were encountered:
Looks like missing brackets. If no addresses have already been issued we can change _base and _nextAvailableaddress setting them to the same value. Also without brackets debug check at the end of function is always false and makes no sense.
if (_nextAvailableaddress != _base)
Serial.println("Cannot change base, addresses have been issued");
So I assume it should be
if (_nextAvailableaddress == _base) {
_base = base;
_nextAvailableaddress=_base;
}
in file: EEPROMex.cpp
in function:
void EEPROMClassEx::setMemPool(int base, int memSize) {
//Base can only be adjusted if no addresses have already been issued
if (_nextAvailableaddress == _base)
_base = base;
_nextAvailableaddress=_base; //<- this is outside if conditional statement: is right?
The text was updated successfully, but these errors were encountered: