From c7a178ba6783deff69ff78819aa9e75a93375540 Mon Sep 17 00:00:00 2001 From: knmcguire Date: Tue, 11 Jan 2022 10:19:02 +0100 Subject: [PATCH] removed if statements --- src/modules/src/esp_deck_flasher.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/modules/src/esp_deck_flasher.c b/src/modules/src/esp_deck_flasher.c index 85ba8059d8..05912d7411 100644 --- a/src/modules/src/esp_deck_flasher.c +++ b/src/modules/src/esp_deck_flasher.c @@ -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)) {