You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2019/01/25 00:39:07 UTC

[GitHub] saulpw opened a new pull request #1613: Fix disconnect during OTA by spacing out erases (#2)

saulpw opened a new pull request #1613: Fix disconnect during OTA by spacing out erases (#2)
URL: https://github.com/apache/mynewt-core/pull/1613
 
 
   * Erasing the entire flash image size at once can take significant time, causing a bluetooth disconnect or significant battery sag.  Instead, we erase immediately prior to crossing a sector while writing the image.
   
   * We could check for empty to increase efficiency.  However, for simplicity and consistency we will always erase lazily.
   
   * wrap with `MYNEWT_VAL(IMGMGR_LAZY_ERASE)`.  Set IMGMGR_LAZY_ERASE to 0 to disable, 1 to enable.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services