Removed plus

This commit is contained in:
Ollo 2023-09-22 22:43:55 +02:00
parent efebb0c1f4
commit c2035df4d9

View File

@ -261,7 +261,7 @@ fn send_package(ipaddress: String,
if straba_res.failure == false { if straba_res.failure == false {
let text_style = MonoTextStyle::new(&FONT_6X10, BinaryColor::On); let text_style = MonoTextStyle::new(&FONT_6X10, BinaryColor::On);
let text_style_station = MonoTextStyle::new(&FONT_5X8, BinaryColor::On); let text_style_station = MonoTextStyle::new(&FONT_5X8, BinaryColor::On);
let mut outbound = format!("+{}min", (straba_res.outbound_diff / 60)); let mut outbound = format!("{}min", (straba_res.outbound_diff / 60));
if straba_res.outbound_diff < 60 { if straba_res.outbound_diff < 60 {
outbound = String::from("sofort"); outbound = String::from("sofort");
} }
@ -272,7 +272,7 @@ fn send_package(ipaddress: String,
.draw(&mut display) .draw(&mut display)
.unwrap(); .unwrap();
let mut inbound = format!("+{}min", (straba_res.inbound_diff / 60)); let mut inbound = format!("{}min", (straba_res.inbound_diff / 60));
if straba_res.inbound_diff < 60 { if straba_res.inbound_diff < 60 {
inbound = String::from("sofort"); inbound = String::from("sofort");
} }