de-nordic opened a new pull request #124:
URL: https://github.com/apache/mynewt-mcumgr/pull/124
The PR is series of fixes that to the Zephyr fork that:
- change slot selection logic in `img_mgmt_find_best_area_id` to just check
if slot1 is available, as basically that was what the function was doing, but
with unneeded checks to slot 0, etc; change the name of the function to reflect
what it does from `img_mgmt_find_best_area_id` to
`img_mgmt_get_second_slot_area_id`
- add missing check, of `img_mgmt_get_second_slot_area_id` return, in
`img_mgmt_impl_erase_slot`;
- changes the `img_mgmt_impl_write_image_data` to use the `area_id` from
the state of mcumgr, so the currently selected for operation, instead of
calling `img_mgmt_get_second_slot_area_id` (formerly
`img_mgmt_find_best_area_id`) to figure it out again.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]