btleplug
btleplug copied to clipboard
fix CBManager crash on macOS `<10.15`
my current fix for #335
actually wondering how format got a fail on a file which is not part of the commit :D
I'm really bad about updating formatting, so it tends to file through. I need to update our CI to warn, not fail, on formatting.
Don't worry about it, I'll try to get the patch in and formatting updated soon.
Ok, looking at this again...
The one problem I see here is that we aren't actually checking the OS platform we're looking at the version of, so this check will run on both macOS and iOS (I build this library into an iOS application). Do we need to do extra target checks here for knowing if we're running on macOS and iOS? Mainly want to make sure before I merge this, as debugging this on iOS is a pain if anything goes wrong.
yeah I thought about this but forgot to post a thing about it ! should I change the match to cover both ios edge-cases too then ?
@qdot I don't have any iOS device to try it on, would it be possible for you to get what a dbg!(os_info::get())
does print on your iOS device ?
I'm not sure of what I'd need to match for to check for iOS vs macOS from os_info crate doc...
Thanks forward