fix: typo

This commit is contained in:
Mike 2025-05-12 16:28:50 +02:00
parent 1feac3927c
commit 5c3ae41ea1
No known key found for this signature in database
3 changed files with 19 additions and 19 deletions

View File

@ -165,8 +165,8 @@ void BauSystemB::memoryRoutingTableWriteIndication(Priority priority, HopCountTy
if (_deviceObj.verifyMode()) if (_deviceObj.verifyMode())
memoryRoutingTableReadIndication(priority, hopType, asap, secCtrl, number, memoryAddress, data); memoryRoutingTableReadIndication(priority, hopType, asap, secCtrl, number, memoryAddress, data);
if(_unloadStartet != 0) if(_unloadStarted != 0)
_unloadStartet = millis(); // reset unload timer _unloadStarted = millis(); // reset unload timer
} }
void BauSystemB::memoryWriteIndication(Priority priority, HopCountType hopType, uint16_t asap, const SecurityControl& secCtrl, uint8_t number, void BauSystemB::memoryWriteIndication(Priority priority, HopCountType hopType, uint16_t asap, const SecurityControl& secCtrl, uint8_t number,
@ -177,8 +177,8 @@ void BauSystemB::memoryWriteIndication(Priority priority, HopCountType hopType,
if (_deviceObj.verifyMode()) if (_deviceObj.verifyMode())
memoryReadIndication(priority, hopType, asap, secCtrl, number, memoryAddress, data); memoryReadIndication(priority, hopType, asap, secCtrl, number, memoryAddress, data);
if(_unloadStartet != 0) if(_unloadStarted != 0)
_unloadStartet = millis(); // reset unload timer _unloadStarted = millis(); // reset unload timer
} }
void BauSystemB::memoryReadIndication(Priority priority, HopCountType hopType, uint16_t asap, const SecurityControl& secCtrl, uint8_t number, void BauSystemB::memoryReadIndication(Priority priority, HopCountType hopType, uint16_t asap, const SecurityControl& secCtrl, uint8_t number,
@ -200,8 +200,8 @@ void BauSystemB::memoryExtWriteIndication(Priority priority, HopCountType hopTyp
applicationLayer().memoryExtWriteResponse(AckRequested, priority, hopType, asap, secCtrl, ReturnCodes::Success, number, memoryAddress, _memory.toAbsolute(memoryAddress)); applicationLayer().memoryExtWriteResponse(AckRequested, priority, hopType, asap, secCtrl, ReturnCodes::Success, number, memoryAddress, _memory.toAbsolute(memoryAddress));
if(_unloadStartet != 0) if(_unloadStarted != 0)
_unloadStartet = millis(); // reset unload timer _unloadStarted = millis(); // reset unload timer
} }
void BauSystemB::memoryExtReadIndication(Priority priority, HopCountType hopType, uint16_t asap, const SecurityControl& secCtrl, uint8_t number, uint32_t memoryAddress) void BauSystemB::memoryExtReadIndication(Priority priority, HopCountType hopType, uint16_t asap, const SecurityControl& secCtrl, uint8_t number, uint32_t memoryAddress)
@ -262,8 +262,8 @@ void BauSystemB::userMemoryWriteIndication(Priority priority, HopCountType hopTy
if (_deviceObj.verifyMode()) if (_deviceObj.verifyMode())
userMemoryReadIndication(priority, hopType, asap, secCtrl, number, memoryAddress); userMemoryReadIndication(priority, hopType, asap, secCtrl, number, memoryAddress);
if(_unloadStartet != 0) if(_unloadStarted != 0)
_unloadStartet = millis(); // reset unload timer _unloadStarted = millis(); // reset unload timer
} }
void BauSystemB::propertyDescriptionReadIndication(Priority priority, HopCountType hopType, uint16_t asap, const SecurityControl& secCtrl, uint8_t objectIndex, void BauSystemB::propertyDescriptionReadIndication(Priority priority, HopCountType hopType, uint16_t asap, const SecurityControl& secCtrl, uint8_t objectIndex,
@ -324,8 +324,8 @@ void BauSystemB::propertyValueWriteIndication(Priority priority, HopCountType ho
propertyValueReadIndication(priority, hopType, asap, secCtrl, objectIndex, propertyId, numberOfElements, startIndex); propertyValueReadIndication(priority, hopType, asap, secCtrl, objectIndex, propertyId, numberOfElements, startIndex);
if(_unloadStartet != 0) if(_unloadStarted != 0)
_unloadStartet = millis(); // reset unload timer _unloadStarted = millis(); // reset unload timer
} }
void BauSystemB::propertyValueExtWriteIndication(Priority priority, HopCountType hopType, uint16_t asap, const SecurityControl& secCtrl, ObjectType objectType, uint8_t objectInstance, void BauSystemB::propertyValueExtWriteIndication(Priority priority, HopCountType hopType, uint16_t asap, const SecurityControl& secCtrl, ObjectType objectType, uint8_t objectInstance,
@ -345,8 +345,8 @@ void BauSystemB::propertyValueExtWriteIndication(Priority priority, HopCountType
applicationLayer().propertyValueExtWriteConResponse(AckRequested, priority, hopType, asap, secCtrl, objectType, objectInstance, propertyId, numberOfElements, startIndex, returnCode); applicationLayer().propertyValueExtWriteConResponse(AckRequested, priority, hopType, asap, secCtrl, objectType, objectInstance, propertyId, numberOfElements, startIndex, returnCode);
} }
if(_unloadStartet != 0) if(_unloadStarted != 0)
_unloadStartet = millis(); // reset unload timer _unloadStarted = millis(); // reset unload timer
} }
void BauSystemB::propertyValueReadIndication(Priority priority, HopCountType hopType, uint16_t asap, const SecurityControl& secCtrl, uint8_t objectIndex, void BauSystemB::propertyValueReadIndication(Priority priority, HopCountType hopType, uint16_t asap, const SecurityControl& secCtrl, uint8_t objectIndex,
@ -784,8 +784,8 @@ void BauSystemB::propertyValueWrite(ObjectType objectType, uint8_t objectInstanc
else else
numberOfElements = 0; numberOfElements = 0;
if(_unloadStartet != 0) if(_unloadStarted != 0)
_unloadStartet = millis(); // reset unload timer _unloadStarted = millis(); // reset unload timer
} }
Memory& BauSystemB::memory() Memory& BauSystemB::memory()

View File

@ -131,5 +131,5 @@ class BauSystemB : protected BusAccessUnit
FunctionPropertyCallback _functionProperty = 0; FunctionPropertyCallback _functionProperty = 0;
FunctionPropertyCallback _functionPropertyState = 0; FunctionPropertyCallback _functionPropertyState = 0;
unsigned long _unloadStartet = 0; unsigned long _unloadStarted = 0;
}; };

View File

@ -50,18 +50,18 @@ void BauSystemBDevice::loop()
_appLayer.loop(); _appLayer.loop();
#endif #endif
if(_unloadStartet == 0) if(_unloadStarted == 0)
{ {
if(_addrTable.getWasUnloaded() if(_addrTable.getWasUnloaded()
|| _assocTable.getWasUnloaded() || _assocTable.getWasUnloaded()
|| _groupObjTable.getWasUnloaded()) || _groupObjTable.getWasUnloaded())
{ {
_unloadStartet = millis(); _unloadStarted = millis();
} }
} else if(millis() - _unloadStartet > 5000) } else if(millis() - _unloadStarted > 5000)
{ {
writeMemory(); writeMemory();
_unloadStartet = 0; _unloadStarted = 0;
} }
} }