Skip to content

Commit

Permalink
communication: remove firmware_size from ACTION_SELECT
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor-Misic authored and jciberlin committed May 29, 2022
1 parent 785e26b commit facb286
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Bootloader/Src/communication.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,6 @@ Communication_handler(uint8_t* buf, uint32_t length) {
case communicationState_CMD_ACTION_SELECT:
/* Different bootloader actions. Not necessary to flash firmware from here. */

firmware_size = Utils_StringToInt(buf, length);

if (0 == strcmp((char*)buf, VERIFY_FLASHER_CMD)) {
s_update_state = communicationState_RECEIVE_FIRMWARE_SIZE;
success = Communication_sendMessage(ack_pack, sizeof(ack_pack));
Expand Down

0 comments on commit facb286

Please sign in to comment.