Skip to content

Commit

Permalink
Merge pull request #3572 from Navid200/Navid_2024_07_16
Browse files Browse the repository at this point in the history
Disable "Restart Sensor" when incompatible
  • Loading branch information
jamorham authored Sep 27, 2024
2 parents aee9315 + 6676e99 commit 655e802
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1729,9 +1729,15 @@ public static void evaluateG6Settings() {
} else if (!onlyUsingNativeMode() && !Home.get_engineering_mode()) {
// TODO revisit this now that there is scaling
setG6Defaults();
UserError.Log.uel(TAG, "Dex Native mode enabled. For your device, non-native mode is either not possible or not recommended.");
UserError.Log.wtf(TAG, "Dex Native mode enabled. For your device, non-native mode is either not possible or not recommended.");
JoH.showNotification("Enabled Native", "Native mode enabled", null, Constants.G6_DEFAULTS_MESSAGE, false, true, false);
}
if (FirmwareCapability.isTransmitterRawIncapable(getTransmitterID())) { // If we are using a G7 or G6 Firefly (mod or not)
if (Pref.getBooleanDefaultFalse("ob1_g5_restart_sensor") && !Home.get_engineering_mode()) { // If restart is enabled, not in engineering mode
Pref.setBoolean("ob1_g5_restart_sensor", false); // Disable restart
UserError.Log.wtf(TAG, "Restart sensor disabled. You cannot simply restart sensor with your device.");
}
}
}
}
}
Expand Down

0 comments on commit 655e802

Please sign in to comment.