Marstek B2500: Fix setting pass-through mode

This commit is contained in:
Andreas Shimokawa 2025-01-02 01:27:28 +01:00
parent e661a4661a
commit a6e4adc442
3 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,9 @@
### Changelog ### Changelog
#### NEXT
* Marstek B2500: Fix setting pass-though mode
* Marstek B2500: Display sensor temperature in Status Activity
#### 0.83.1 #### 0.83.1
* Initial support for Garmin Fenix 6X Pro Solar * Initial support for Garmin Fenix 6X Pro Solar
* Initial support for Redmi Buds 4 Active * Initial support for Redmi Buds 4 Active

View File

@ -601,5 +601,5 @@ public class DeviceSettingsPreferenceConst {
public static final String PREF_BATTERY_DISCHARGE_INTERVALS_SET = "battery_discharge_intervals_set"; public static final String PREF_BATTERY_DISCHARGE_INTERVALS_SET = "battery_discharge_intervals_set";
public static final String PREF_BATTERY_DISCHARGE_MANUAL = "battery_discharge_manual"; public static final String PREF_BATTERY_DISCHARGE_MANUAL = "battery_discharge_manual";
public static final String PREF_BATTERY_MINIMUM_CHARGE = "battery_minimum_charge"; public static final String PREF_BATTERY_MINIMUM_CHARGE = "battery_minimum_charge";
public static final String PREF_BATTERY_ALLOW_PASS_THROUGH = "battery_allow_pass_though"; public static final String PREF_BATTERY_ALLOW_PASS_THROUGH = "battery_allow_pass_through";
} }

View File

@ -2,7 +2,7 @@
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> <androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<SwitchPreferenceCompat <SwitchPreferenceCompat
android:defaultValue="false" android:defaultValue="false"
android:key="battery_charge_before_discharge" android:key="battery_allow_pass_through"
android:layout="@layout/preference_checkbox" android:layout="@layout/preference_checkbox"
android:summary="@string/battery_allow_pass_though_summary" android:summary="@string/battery_allow_pass_though_summary"
android:title="@string/battery_allow_pass_through" /> android:title="@string/battery_allow_pass_through" />