oops Mighty <3

fix FORWARD being renamed to FRONT
This commit is contained in:
Louka committed 2022-03-10 19:47:28 -05:00
1 parent 9a45f99b0e
commit 71e24d0cb9
1 file changed
+7 -1
@@ -59,7 +59,13 @@ public class IMUTracker implements Tracker, TrackerWithTPS, TrackerWithBattery {
// Loading a config is an act of user editing, therefore it shouldn't not be allowed if editing is not allowed
if (userEditable()) {
if(config.mountingRotation != null) {
mounting = TrackerMountingRotation.valueOf(config.mountingRotation);
try{
mounting = TrackerMountingRotation.valueOf(config.mountingRotation);
}
catch (Exception e){ // FORWARD was renamed to FRONT
mounting = TrackerMountingRotation.FRONT;
config.mountingRotation = "FRONT";
}
if(mounting != null) {
rotAdjust.set(mounting.quaternion);
} else {