Closed daveewall closed 7 years ago
Is this better?
Forget it. I don't think it matters anyway. After upgrading oref0 his morning, it seems they just added direction support for MDT sensors, which fixed the current version of the program, making this PR irrelevant anyway.
I'm running a purely Medtronic setup, and the JSON objects returned from NS don't have some of the fields that Dexcom uses, so the code fails to retrieve the information properly.
I'm not the best Swift programmer, especially when it comes to question marks, so I'm sure there's a Swiftier way to handle this, but it does work for me as-is.
Also, can't test it with a Dexcom setup.