apache / mynewt-mcumgr

Apache mynewt
https://mynewt.apache.org/
99 stars 76 forks source link

img_mgmt/mynewt_img_mgmt: use g_img_mgmt_state instead of upload_status #47

Closed mlaz closed 5 years ago

mlaz commented 5 years ago

g_img_mgmt_state has the sector_id and sector_end fields to be used on lazy erase uploads, this PR makes lazy erase use g_img_mgmt_state instead of upload_state which has the same fields for this purpose.