Revert "Feature: Custom user set charging cap (#265)"

This reverts commit 557cc73a1d, reversing
changes made to 32fad4af8d.
This commit is contained in:
ClaraCrazy
2023-05-29 15:42:02 +02:00
parent 4c748037c1
commit 31f624d662
5 changed files with 0 additions and 47 deletions
-4
View File
@@ -29,7 +29,6 @@ XtremeSettings xtreme_settings = {
.bad_bt = false, // USB
.bad_bt_remember = false, // OFF
.butthurt_timer = 21600, // 6 H
.charge_cap = 100, // 100%
.rgb_backlight = false, // OFF
};
@@ -91,8 +90,6 @@ void XTREME_SETTINGS_LOAD() {
flipper_format_rewind(file);
flipper_format_read_int32(file, "butthurt_timer", &x->butthurt_timer, 1);
flipper_format_rewind(file);
flipper_format_read_uint32(file, "charge_cap", &x->charge_cap, 1);
flipper_format_rewind(file);
flipper_format_read_bool(file, "rgb_backlight", &x->rgb_backlight, 1);
}
flipper_format_free(file);
@@ -129,7 +126,6 @@ void XTREME_SETTINGS_SAVE() {
flipper_format_write_bool(file, "bad_bt", &x->bad_bt, 1);
flipper_format_write_bool(file, "bad_bt_remember", &x->bad_bt_remember, 1);
flipper_format_write_int32(file, "butthurt_timer", &x->butthurt_timer, 1);
flipper_format_write_uint32(file, "charge_cap", &x->charge_cap, 1);
flipper_format_write_bool(file, "rgb_backlight", &x->rgb_backlight, 1);
}
flipper_format_free(file);
-1
View File
@@ -37,7 +37,6 @@ typedef struct {
bool bad_bt;
bool bad_bt_remember;
int32_t butthurt_timer;
uint32_t charge_cap;
bool rgb_backlight;
} XtremeSettings;