mirror of
https://github.com/thelsing/knx.git
synced 2025-01-30 00:19:01 +01:00
Fix last CodeFactor Style issues (#202)
* fix malformed whitespace * fix trailing spaces fix trailing spaces
This commit is contained in:
parent
d43703f7bd
commit
eb963583ee
@ -347,7 +347,7 @@ void ApplicationLayer::dataConnectedConfirm(uint16_t tsap)
|
||||
|
||||
void ApplicationLayer::dataConnectedConfirm(uint16_t tsap, const SecurityControl& secCtrl)
|
||||
{
|
||||
|
||||
//FIXME: implement dataConnectedConfirm DataSecurity
|
||||
}
|
||||
#pragma endregion
|
||||
void ApplicationLayer::groupValueReadRequest(AckType ack, uint16_t asap, Priority priority, HopCountType hopType, const SecurityControl& secCtrl)
|
||||
|
@ -157,7 +157,6 @@ class ApplicationLayer
|
||||
#pragma endregion
|
||||
|
||||
protected:
|
||||
|
||||
#pragma region hooks
|
||||
void dataGroupIndication(HopCountType hopType, Priority priority, uint16_t tsap, APDU& apdu, const SecurityControl &secCtrl);
|
||||
void dataGroupConfirm(AckType ack, HopCountType hopType, Priority priority, uint16_t tsap,
|
||||
|
@ -21,7 +21,6 @@ BauSystemBCoupler::BauSystemBCoupler(Platform& platform) :
|
||||
#ifdef USE_DATASECURE
|
||||
_memory.addSaveRestore(&_secIfObj);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
ApplicationLayer& BauSystemBCoupler::applicationLayer()
|
||||
|
@ -91,7 +91,6 @@ DeviceObject::DeviceObject()
|
||||
#ifdef USE_RF
|
||||
new DataProperty(PID_RF_DOMAIN_ADDRESS_CEMI_SERVER, true, PDT_GENERIC_06, 1, ReadLv3 | WriteLv3),
|
||||
#endif
|
||||
|
||||
};
|
||||
initializeProperties(sizeof(properties), properties);
|
||||
}
|
||||
|
@ -135,7 +135,6 @@ int KNX_Decode_Value(uint8_t* payload, size_t payload_length, const Dpt& datatyp
|
||||
|
||||
int KNX_Encode_Value(const KNXValue& value, uint8_t* payload, size_t payload_length, const Dpt& datatype)
|
||||
{
|
||||
|
||||
if (datatype.mainGroup == 1 && datatype.subGroup >= 1 && datatype.subGroup <= 23 && datatype.subGroup != 20 && !datatype.index)
|
||||
return valueToBusValueBinary(value, payload, payload_length, datatype);
|
||||
// DPT 2.* - Binary Control
|
||||
@ -1553,7 +1552,6 @@ int valueToBusValueRGBW(const KNXValue& value, uint8_t* payload, size_t payload_
|
||||
case 1: // Mask bits
|
||||
unsigned8ToPayload(payload, payload_length, 5, (uint8_t)value, 0x0f);
|
||||
break;
|
||||
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -188,7 +188,6 @@ class InterfaceObject : public SaveRestore
|
||||
uint16_t saveSize() override;
|
||||
|
||||
protected:
|
||||
|
||||
/**
|
||||
* Intializes the Property-array the the supplied values.
|
||||
*/
|
||||
|
@ -29,9 +29,6 @@ enum KnxIpServiceType
|
||||
TunnelingAck = 0x421,
|
||||
RoutingIndication = 0x530,
|
||||
RoutingLostMessage = 0x531,
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
class KnxIpFrame
|
||||
|
@ -49,7 +49,6 @@ class KNXValue
|
||||
KNXValue& operator=(const float value);
|
||||
|
||||
private:
|
||||
|
||||
bool boolValue() const;
|
||||
uint8_t ucharValue() const;
|
||||
uint16_t ushortValue() const;
|
||||
|
@ -162,7 +162,6 @@ void Memory::writeMemory()
|
||||
//save to size of the memoryblock for tableobject too, so that we can rebuild the usedList and freeList
|
||||
if (_tableObjects[i]->_data != nullptr)
|
||||
{
|
||||
|
||||
MemoryBlock* block = findBlockInList(_usedList, _tableObjects[i]->_data);
|
||||
if (block == nullptr)
|
||||
{
|
||||
|
@ -679,7 +679,6 @@ void RfPhysicalLayerCC1101::loop()
|
||||
bytesLeft -= (32 - 1);
|
||||
pByteIndex += (32 - 1);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -719,7 +718,6 @@ void RfPhysicalLayerCC1101::loop()
|
||||
packetStartTime = millis();
|
||||
syncStart = true;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -21,7 +21,6 @@ class BusAccessUnit;
|
||||
*/
|
||||
class SecureApplicationLayer : public ApplicationLayer
|
||||
{
|
||||
|
||||
public:
|
||||
/**
|
||||
* The constructor.
|
||||
@ -56,8 +55,6 @@ class SecureApplicationLayer : public ApplicationLayer
|
||||
void dataConnectedRequest(uint16_t tsap, Priority priority, APDU& apdu, const SecurityControl& secCtrl) override; // apdu must be valid until it was confirmed
|
||||
|
||||
private:
|
||||
|
||||
|
||||
enum class AddrType : uint8_t
|
||||
{
|
||||
group,
|
||||
|
@ -490,7 +490,6 @@ uint16_t SecurityInterfaceObject::getNumberOfElements(PropertyID propId)
|
||||
|
||||
uint64_t SecurityInterfaceObject::getLastValidSequenceNumber(uint16_t deviceAddr)
|
||||
{
|
||||
|
||||
// Get number of entries for this property
|
||||
uint16_t numElements = getNumberOfElements(PID_SECURITY_INDIVIDUAL_ADDRESS_TABLE);
|
||||
|
||||
|
@ -616,7 +616,6 @@ bool TpUartDataLinkLayer::sendSingleFrameByte()
|
||||
|
||||
void TpUartDataLinkLayer::addFrameTxQueue(CemiFrame& frame)
|
||||
{
|
||||
|
||||
_tx_queue_frame_t* tx_frame = new _tx_queue_frame_t;
|
||||
tx_frame->length = frame.telegramLengthtTP();
|
||||
tx_frame->data = new uint8_t[tx_frame->length];
|
||||
|
@ -343,7 +343,6 @@ void TransportLayer::dataIndividualConfirm(AckType ack, uint16_t destination, Ho
|
||||
A5(destination);
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
break;
|
||||
case Disconnect:
|
||||
|
@ -63,7 +63,6 @@ void UsbTunnelInterface::loop()
|
||||
handleHidReportRxQueue();
|
||||
rxHaveCompletePacket = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* USB TX */
|
||||
@ -136,7 +135,6 @@ void UsbTunnelInterface::loadNextTxFrame(uint8_t** sendBuffer, uint16_t* sendBuf
|
||||
}
|
||||
println("");
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
void UsbTunnelInterface::sendKnxHidReport(ProtocolIdType protId, ServiceIdType servId, uint8_t* data, uint16_t length)
|
||||
|
Loading…
Reference in New Issue
Block a user