We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0be31ec commit a6db2baCopy full SHA for a6db2ba
src/ev.rs
@@ -64,14 +64,17 @@ pub async fn rest_server(tx: Sender<Packet>, ctx: Arc<Mutex<RestContext>>) -> Re
64
info!("{} Received battery level: {}", NAME, data.battery_level);
65
let rest_ctx = ctx.lock().await;
66
if let Some(ch) = rest_ctx.sensor_channel {
67
- let _ = send_ev_data(
+ if let Err(e) = send_ev_data(
68
tx,
69
data.battery_level,
70
ch,
71
rest_ctx.ev_battery_capacity,
72
rest_ctx.ev_factor,
73
)
74
- .await;
+ .await
75
+ {
76
+ error!("{} EV model error: {}", NAME, e);
77
+ }
78
} else {
79
warn!("{} Not sending packet because no sensor channel yet", NAME);
80
}
0 commit comments