commaai / openpilot-apks

The source code for the APK that runs inside openpilot.
MIT License
48 stars 67 forks source link

calib_description baseui error fix #53

Closed theantihero closed 4 years ago

theantihero commented 4 years ago

How to reproduce

  1. Have device EON/C2 and Reset Camera Calibration
  2. Going back to Device in Settings will cause a baseui error

Fix I found that the calibration files get removed, so when it tries to parse the json it's probably null. I decided to wrap it in a try{}catch{} and it seemed to fix the problem for me until it's plugged back into the vehicle. There's probably a better way, but thought I should make this to let it be known.