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

Fix for force-unwrap crash in DFURemoteError.with(code:) #466

Closed dinesharjani closed 3 years ago

dinesharjani commented 3 years ago

We found this crash in nRF Connect. Filip believes this was a user testing their new firmware, because all error codes are supposed to be present. In any case, we decided this force-unwrap could be avoided, so if an error is not found, we presume the DFU device's response is not correct.