Skip to content

Commit

Permalink
Merge pull request #6 from ARMmbed/release-1.2.1-lite
Browse files Browse the repository at this point in the history
pelion-client-lite 1.2.1-lite
  • Loading branch information
teetak01 committed Aug 26, 2020
2 parents cdee2d4 + 9204292 commit dce113a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
## Changelog for Pelion Device Management Client Lite

### Release 1.2.0-lite (19.08.2020)
### Release 1.2.1-lite (26.08.2020)

Fixed handling of partially written (due to power-cut) flash pages while installing the FW candidate.

### Release 1.2.0-lite (17.08.2020)

* Fixed an issue where Client Lite would trigger sleep-callback during the bootstrapping process.
* Changed the notification handler to send a notification only when crossing the "less than" or "greater than" notification threshold values.
Expand Down
11 changes: 9 additions & 2 deletions fota/fota_candidate.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,12 +310,15 @@ static int fota_candidate_extract_fragment(uint8_t **buf, uint32_t *actual_size,

FOTA_DBG_ASSERT(ctx);

*ignore = false;

// Move extra bytes from last time from end to beginning of buffer
memcpy(ctx->fragment_buf, ctx->fragment_buf + *actual_size, ctx->frag_extra_bytes);
if (!*ignore) {
memcpy(ctx->fragment_buf, ctx->fragment_buf + *actual_size, ctx->frag_extra_bytes);
}
*buf = ctx->fragment_buf + ctx->frag_extra_bytes;

*ignore = false;

*actual_size = MIN(ctx->header_info.fw_size - ctx->bytes_completed, ctx->effective_block_size);
if (!*actual_size) {
return FOTA_STATUS_SUCCESS;
Expand Down Expand Up @@ -457,6 +460,10 @@ int fota_candidate_iterate_image(bool validate, bool force_encrypt, const char *

// Start iteration phase

actual_size = 0;
ctx->frag_extra_bytes = 0;
ignore = false;

ret = fota_candidate_extract_start(force_encrypt, expected_comp_name, install_alignment);
if (ret) {
goto fail;
Expand Down
2 changes: 1 addition & 1 deletion mbed-client/source/lwm2m_endpoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

#define TRACE_GROUP "lwEP"

static const char MCC_VERSION[] = "mccv=1.2.0-lite";
static const char MCC_VERSION[] = "mccv=1.2.1-lite";

static const char ep_name_parameter[] = "ep="; /* Endpoint name. A unique name for the registering node in a domain. */
static const uint8_t resource_path[] = {'r', 'd'}; /* For resource directory */
Expand Down

0 comments on commit dce113a

Please sign in to comment.