This commit is contained in:
Lukas Bachschwell 2020-01-30 17:40:40 +01:00
parent efb0bf0b08
commit 3fb3508be2
Signed by: lbsadmin
GPG Key ID: CCC6AA87CC8DF425

View File

@ -103,7 +103,7 @@ async fn udp_comm(appconf: &Conf, senddata: futures::channel::mpsc::UnboundedSen
let result_str = String::from_utf8(display_result).unwrap(); let result_str = String::from_utf8(display_result).unwrap();
if result_str.contains("S0R1") { if result_str.contains("S0R1") {
race_timer_state_my.store(true, Ordering::Relaxed); race_timer_state.store(true, Ordering::Relaxed);
println!("Set race bool"); println!("Set race bool");
if appconf.filemode { if appconf.filemode {
write_file("Race active".to_string(), "racestate.txt"); write_file("Race active".to_string(), "racestate.txt");
@ -111,7 +111,6 @@ async fn udp_comm(appconf: &Conf, senddata: futures::channel::mpsc::UnboundedSen
write_file("0".to_string(), "rx2.txt"); write_file("0".to_string(), "rx2.txt");
write_file("0".to_string(), "rx3.txt"); write_file("0".to_string(), "rx3.txt");
} }
/*
set_obs_text( set_obs_text(
&senddata, &senddata,
&appconf.race_status_source, &appconf.race_status_source,
@ -120,9 +119,8 @@ async fn udp_comm(appconf: &Conf, senddata: futures::channel::mpsc::UnboundedSen
for i in 0..2 { for i in 0..2 {
set_obs_text(&senddata, &appconf.lap_sources[i], &"0".to_string()); set_obs_text(&senddata, &appconf.lap_sources[i], &"0".to_string());
} }
*/
} else if result_str.contains("S0R0") { } else if result_str.contains("S0R0") {
race_timer_state_my.store(false, Ordering::Relaxed); race_timer_state.store(false, Ordering::Relaxed);
if appconf.filemode { if appconf.filemode {
write_file("Race inactive".to_string(), "racestate.txt"); write_file("Race inactive".to_string(), "racestate.txt");
} }