Skip to content

Commit

Permalink
Disable "Restart Sensor" when incompatible
Browse files Browse the repository at this point in the history
  • Loading branch information
Navid200 committed Jul 16, 2024
1 parent f418d5b commit 041e95a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1725,6 +1725,12 @@ public static void evaluateG6Settings() {
UserError.Log.uel(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.uel(TAG, "Restart sensor disabled. You cannot simply restart sensor with your device.");
}
}
}
}
}
Expand Down

0 comments on commit 041e95a

Please sign in to comment.