simonmitchell / rocc

A Swift framework for remote control of digital Cameras
MIT License
123 stars 15 forks source link

Support non okay command response codes #18

Closed simonmitchell closed 4 years ago

simonmitchell commented 4 years ago

There is a vast list of error command response codes. The awaitData function should be enhanced to return a Result object to its completion closure and in the case of a bad response code should error. The command response code can be ignored if an end data packet is received as some cameras don’t send it in this case, but otherwise should be heeded