Fix last CodeFactor Style issues (#202)

* fix malformed whitespace

* fix trailing spaces 


fix trailing spaces
This commit is contained in:
croghostrider 2022-04-25 11:30:53 -07:00 committed by GitHub
parent d43703f7bd
commit eb963583ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 9 additions and 30 deletions

View File

@ -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)

View File

@ -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,

View File

@ -21,7 +21,6 @@ BauSystemBCoupler::BauSystemBCoupler(Platform& platform) :
#ifdef USE_DATASECURE
_memory.addSaveRestore(&_secIfObj);
#endif
}
ApplicationLayer& BauSystemBCoupler::applicationLayer()

View File

@ -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);
}

View File

@ -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;
}

View File

@ -188,7 +188,6 @@ class InterfaceObject : public SaveRestore
uint16_t saveSize() override;
protected:
/**
* Intializes the Property-array the the supplied values.
*/

View File

@ -29,9 +29,6 @@ enum KnxIpServiceType
TunnelingAck = 0x421,
RoutingIndication = 0x530,
RoutingLostMessage = 0x531,
};
class KnxIpFrame

View File

@ -49,7 +49,6 @@ class KNXValue
KNXValue& operator=(const float value);
private:
bool boolValue() const;
uint8_t ucharValue() const;
uint16_t ushortValue() const;

View File

@ -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)
{

View File

@ -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;

View File

@ -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,

View File

@ -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);

View File

@ -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];

View File

@ -343,7 +343,6 @@ void TransportLayer::dataIndividualConfirm(AckType ack, uint16_t destination, Ho
A5(destination);
break;
}
}
break;
case Disconnect:

View File

@ -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)