Skip to content

Commit

Permalink
Fix race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
sahil-kale committed Jun 1, 2024
1 parent ca46911 commit b7d5941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/voyager.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,9 @@ voyager_error_E voyager_bootloader_process_receieved_packet(uint8_t const *const
if (voyager_data.pending_data) {
voyager_data.packet_overrun = true;
} else {
voyager_data.pending_data = true;
voyager_data.packet_size = length;
memcpy(voyager_data.message_buffer, data, length);
voyager_data.pending_data = true;
}

} while (false);
Expand Down

0 comments on commit b7d5941

Please sign in to comment.