Skip to content

Commit

Permalink
Update mbus.cpp
Browse files Browse the repository at this point in the history
remove warnings from CodeFactor:
Redundant blank line at the start of a code block should be deleted. (whitespace/blank_line)
  • Loading branch information
elektron-bbs committed Dec 3, 2024
1 parent 4b7b87b commit c9788a7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/mbus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,6 @@ uint16_t byteSize(uint8_t Smode, uint8_t transmit, uint16_t packetSize)
//----------------------------------------------------------------------------------
void encodeTXPacket(uint8_t *pPacket, uint8_t *pData, uint8_t dataSize)
{

uint8_t loopCnt;
uint8_t dataRemaining;
uint8_t dataEncoded;
Expand Down Expand Up @@ -1137,7 +1136,6 @@ uint16_t decodeRXBytesSmode(uint8_t *pByte, uint8_t *pPacket, uint16_t packetSiz
//----------------------------------------------------------------------------------
uint16_t decodeRXBytesTmode(uint8_t *pByte, uint8_t *pPacket, uint16_t packetSize)
{

uint16_t bytesRemaining;
uint16_t bytesEncoded;
uint16_t decodingStatus;
Expand Down Expand Up @@ -1171,7 +1169,6 @@ uint16_t decodeRXBytesTmode(uint8_t *pByte, uint8_t *pPacket, uint16_t packetSiz

else
{

decodingStatus = decode3outof6(pByte, pPacket, 0);

// Check for valid 3 out of 6 decoding
Expand Down Expand Up @@ -1630,7 +1627,6 @@ static uint8_t decodeTab[64] = {0xFF, // "3 out of 6" encoded 0x00 decoded

void encode3outof6(uint8_t *uncodedData, uint8_t *encodedData, uint8_t lastByte)
{

uint8_t data[4];

// - Perform encoding -
Expand Down Expand Up @@ -1679,7 +1675,6 @@ void encode3outof6(uint8_t *uncodedData, uint8_t *encodedData, uint8_t lastByte)

uint8_t decode3outof6(uint8_t *encodedData, uint8_t *decodedData, uint8_t lastByte)
{

uint8_t data[4];

// - Perform decoding on the input data -
Expand Down

0 comments on commit c9788a7

Please sign in to comment.