NordicSemiconductor / IOS-DFU-Library

OTA DFU Library for Mac and iOS, compatible with nRF5x SoCs
http://www.nordicsemi.com
BSD 3-Clause "New" or "Revised" License
526 stars 215 forks source link

Ignore checksum response when selecting an object #483

Closed philips77 closed 2 years ago

philips77 commented 2 years ago

This PR fixes #465. Perhaps.

When a response to .calculateChecksum is received instead of .selectObject, the library will keep waiting for the proper response. It will just log a message, but won't fail the DFU. In #480 @dinesharjani introduced a check for the op code, but was reporting an error. As we don't yet know what is the better approach, let's first try waiting, hoping that we will get more logs from desperate users (sorry!).