Skip to content

Commit

Permalink
Add blank lines for legibility
Browse files Browse the repository at this point in the history
  • Loading branch information
gemenerik committed Nov 24, 2021
1 parent 569445e commit 494f194
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/drivers/esp32/src/esp_slip.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ static slipDecoderStatus_t decodeSlipPacket(uint8_t c, espSlipReceivePacket_t *r
receiverPacket->status = 1;
espblReceiveState = (c == SLIP_START_STOP_BYTE) ? receiveDirection : receiveStart;
break;

case receiveDirection:
if (c == 0x01)
{
Expand All @@ -119,6 +120,7 @@ static slipDecoderStatus_t decodeSlipPacket(uint8_t c, espSlipReceivePacket_t *r
decoderStatus = SLIP_ERROR;
}
break;

case receiveCommand:
receiverPacket->command = c;
slipSizeIndex = 0;
Expand All @@ -132,6 +134,7 @@ static slipDecoderStatus_t decodeSlipPacket(uint8_t c, espSlipReceivePacket_t *r
decoderStatus = SLIP_ERROR;
}
break;

case receiveSize:
slipSize[slipSizeIndex] = c;
if (slipSizeIndex == 1)
Expand All @@ -150,6 +153,7 @@ static slipDecoderStatus_t decodeSlipPacket(uint8_t c, espSlipReceivePacket_t *r
}
slipSizeIndex++;
break;

case receiveValue: // only used for READ_REG
slipValue[slipValueIndex] = c;
if (slipValueIndex == 3)
Expand All @@ -161,6 +165,7 @@ static slipDecoderStatus_t decodeSlipPacket(uint8_t c, espSlipReceivePacket_t *r
}
slipValueIndex++;
break;

case receiveData:
{
const uint16_t payloadSize = receiverPacket->dataSize - 4;
Expand Down

0 comments on commit 494f194

Please sign in to comment.