dji-sdk / Mobile-SDK-iOS

DJI Mobile SDK for iOS: http://developer.dji.com/mobile-sdk/
Other
581 stars 255 forks source link

DJIOnboardSDKDevice delegate called multiple times #318

Closed Jahor closed 5 years ago

Jahor commented 5 years ago

If DJIOnboardSDKDevice.delegate property is set to the same value multiple times, delegate's method onboardSDKDevice:didSendDataToMobile: will be called multiple times when data is received.

DJI-SDK-iOS (4.10) gz#25647

dji-dev commented 5 years ago

Public comment from Luce Luo in Zendesk ticket #25647:

Dear Customer,

Thank you for contacting DJI.
To help us collect questions in detail, please fill in the form below and we will handle this ticket once we have received it.
https://formcrafts.com/a/dji-developer-feedback-en

Thanks,

Luce Luo
DJI Dev Team

gparrow commented 5 years ago

I'm having the same issue, it seems like setting the delegate causes an event subscription that doesn't get removed when a new delegate is set.

vince-zheng commented 5 years ago

We have fixed the issue. And we will release in next version.