dotintent / FlutterBleLib

Bluetooth Low Energy library for Flutter with support for simulating peripherals
Apache License 2.0
531 stars 195 forks source link

Fix emitting current connection state on iOS #547

Closed mikolak closed 3 years ago

mikolak commented 3 years ago

For reasons unknown casting BOOL: NO to BOOL makes it a YES.

Fixes #540

dariuszseweryn commented 3 years ago

I guess it may be that (id) is a pointer to a BOOL but when you cast that pointer to BOOL it becomes YES as the pointer is not a nil reference. 🤷‍♂️