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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to