Skip to content

Commit

Permalink
removed if statements
Browse files Browse the repository at this point in the history
  • Loading branch information
knmcguire authored and jonasdn committed Jan 11, 2022
1 parent 8168db2 commit c7a178b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/modules/src/esp_deck_flasher.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@ bool espDeckFlasherWrite(const uint32_t memAddr, const uint8_t writeLen, const u
const bool sendBufferFull = (sendBufferIndex == ESP_MTU);
const bool lastPacket = (sequenceNumber == numberOfDataPackets - 1);
bool lastPacketFull = lastPacket && (sendBufferIndex == ESP_BITSTREAM_SIZE % ESP_MTU);
if (lastPacket)
{
lastPacketFull = (sendBufferIndex == ESP_BITSTREAM_SIZE % ESP_MTU);
}

if (sendBufferFull || (lastPacket && lastPacketFull))
{
Expand Down

0 comments on commit c7a178b

Please sign in to comment.