Skip to content

Commit 6bcc2cf

Browse files
committed
config: remove old unused EV options
1 parent 2df801f commit 6bcc2cf

File tree

3 files changed

+0
-29
lines changed

3 files changed

+0
-29
lines changed

contrib/config.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,3 @@
9898
# Path to script executed when Android Auto session starts/stops and EV battery data is needed
9999
# Argument "start" or "stop" is appended automatically when invoked
100100
ev_battery_logger = ""
101-
102-
# Traction battery capacity [Wh]
103-
ev_battery_capacity = 22000
104-
105-
# Some unknown parameter - change this to have a correct range (u2->u3)
106-
ev_factor = 0.075

src/config.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,6 @@ pub struct AppConfig {
141141
pub ev: bool,
142142
#[serde(default, deserialize_with = "empty_string_as_none")]
143143
pub ev_battery_logger: Option<PathBuf>,
144-
pub ev_battery_capacity: u64,
145-
pub ev_factor: f32,
146144

147145
#[serde(skip)]
148146
pub restart_requested: bool,
@@ -179,8 +177,6 @@ impl Default for AppConfig {
179177
dhu: false,
180178
ev: false,
181179
ev_battery_logger: None,
182-
ev_battery_capacity: 22000,
183-
ev_factor: 0.075,
184180
restart_requested: false,
185181
}
186182
}
@@ -277,8 +273,6 @@ impl AppConfig {
277273
if let Some(path) = &self.ev_battery_logger {
278274
doc["ev_battery_logger"] = value(path.display().to_string());
279275
}
280-
doc["ev_battery_capacity"] = value(self.ev_battery_capacity as i64);
281-
doc["ev_factor"] = value(self.ev_factor as f64);
282276

283277
let _ = remount_root(false);
284278
info!(

static/index.html

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -294,23 +294,6 @@ <h3>🛸 aa-proxy-rs</h3>
294294
>
295295
</td>
296296
</tr>
297-
<tr>
298-
<td><label for="ev_battery_capacity">ev_battery_capacity</label></td>
299-
<td>
300-
<input type="number" id="ev_battery_capacity" /><br /><small
301-
>Traction battery capacity [Wh]</small
302-
>
303-
</td>
304-
</tr>
305-
<tr>
306-
<td><label for="ev_factor">ev_factor</label></td>
307-
<td>
308-
<input type="number" step="any" id="ev_factor" /><br /><small
309-
>Some unknown parameter - change this to have a correct range
310-
(u2->u3)</small
311-
>
312-
</td>
313-
</tr>
314297
</table>
315298
</form>
316299

0 commit comments

Comments
 (0)