mirror of
https://github.com/thelsing/knx.git
synced 2025-08-13 13:46:20 +02:00
clean up debug stuff, comments ...
This commit is contained in:
parent
d34e7767c8
commit
b5b228c417
@ -112,7 +112,6 @@ void BauSystemB::memoryWriteIndication(Priority priority, HopCountType hopType,
|
||||
uint16_t memoryAddress, uint8_t * data)
|
||||
{
|
||||
_memory.writeMemory(memoryAddress, number, data);
|
||||
Serial.println("memoryWriteIndication");
|
||||
if (_deviceObj.verifyMode())
|
||||
memoryReadIndicationP(priority, hopType, asap, secCtrl, number, memoryAddress, data);
|
||||
}
|
||||
@ -212,12 +211,6 @@ void BauSystemB::propertyDescriptionReadIndication(Priority priority, HopCountTy
|
||||
void BauSystemB::propertyValueWriteIndication(Priority priority, HopCountType hopType, uint16_t asap, const SecurityControl &secCtrl, uint8_t objectIndex,
|
||||
uint8_t propertyId, uint8_t numberOfElements, uint16_t startIndex, uint8_t* data, uint8_t length)
|
||||
{
|
||||
Serial.print("propertyValueWriteIndication: ");
|
||||
Serial.println(propertyId);
|
||||
if(propertyId == 5 && objectIndex == 3)
|
||||
{
|
||||
Serial.println("gotcha");
|
||||
}
|
||||
InterfaceObject* obj = getInterfaceObject(objectIndex);
|
||||
if(obj)
|
||||
obj->writeProperty((PropertyID)propertyId, startIndex, data, numberOfElements);
|
||||
@ -258,11 +251,6 @@ void BauSystemB::propertyValueReadIndication(Priority priority, HopCountType hop
|
||||
else
|
||||
elementCount = 0;
|
||||
|
||||
if(objectIndex == 1 && propertyId == 27)
|
||||
{
|
||||
Serial.print(" ");
|
||||
}
|
||||
|
||||
uint8_t data[size];
|
||||
if(obj)
|
||||
obj->readProperty((PropertyID)propertyId, startIndex, elementCount, data);
|
||||
|
@ -82,11 +82,11 @@ void GroupObjectTableObject::beforeStateChange(LoadState& newState)
|
||||
|
||||
_tableData = (uint16_t*)data();
|
||||
|
||||
/*if (!initGroupObjects())
|
||||
if (!initGroupObjects())
|
||||
{
|
||||
newState = LS_ERROR;
|
||||
TableObject::errorCode(E_SOFTWARE_FAULT);
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
bool GroupObjectTableObject::initGroupObjects()
|
||||
|
@ -138,7 +138,6 @@ void Memory::writeMemory()
|
||||
else
|
||||
bufferPos = pushWord(0, bufferPos);
|
||||
|
||||
//bufferPos = _tableObjects[i]->save(buffer);
|
||||
flashPos = _platform.writeNonVolatileMemory(flashPos, buffer, bufferPos - buffer);
|
||||
}
|
||||
|
||||
|
@ -82,7 +82,6 @@ void NetworkLayerDevice::dataIndication(AckType ack, AddressType addrType, uint1
|
||||
return;
|
||||
|
||||
_transportLayer.dataIndividualIndication(destination, hopType, priority, source, npdu.tpdu());
|
||||
Serial.println("NL:dI");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -138,9 +138,6 @@ size_t Platform::getNonVolatileMemorySize()
|
||||
|
||||
void Platform::commitNonVolatileMemory()
|
||||
{
|
||||
Serial.println("commitNonVolatileMemory");
|
||||
|
||||
|
||||
if(_bufferedEraseblockNumber > -1 && _bufferedEraseblockDirty)
|
||||
{
|
||||
writeBufferedEraseBlock();
|
||||
|
@ -83,14 +83,9 @@ bool TableObject::allocTable(uint32_t size, bool doFill, uint8_t fillByte)
|
||||
|
||||
if (doFill)
|
||||
{
|
||||
//memset(_data, fillByte, size);
|
||||
Serial.print("allocTable doFill: ");
|
||||
Serial.print(fillByte);
|
||||
Serial.print(" ");
|
||||
Serial.println(size);
|
||||
|
||||
uint32_t addr = _memory.toRelative(_data);
|
||||
for(int i = 0; i< size;i++)
|
||||
_memory.writeMemory(_memory.toRelative(_data)+i, 1, &fillByte);
|
||||
_memory.writeMemory(addr+i, 1, &fillByte);
|
||||
}
|
||||
|
||||
_size = size;
|
||||
@ -303,7 +298,6 @@ void TableObject::initializeProperties(size_t propertiesSize, Property** propert
|
||||
//TODO: missing
|
||||
|
||||
// 23 PID_TABLE 3 / (3)
|
||||
// 27 PID_MCB_TABLE 3 / 3
|
||||
|
||||
uint8_t ownPropertiesCount = sizeof(ownProperties) / sizeof(Property*);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user