fix tread safty issues by annotating Box Traits correctly
This commit is contained in:
@@ -31,7 +31,7 @@ use tank::*;
|
||||
use crate::config::BoardVersion::INITIAL;
|
||||
use crate::hal::{BoardInteraction, PlantHal, HAL, PLANT_COUNT};
|
||||
use crate::hal::battery::BatteryInteraction;
|
||||
pub static BOARD_ACCESS: Lazy<Arc<Mutex<HAL>>> = Lazy::new(|| Arc::new(PlantHal::create().unwrap()));
|
||||
pub static BOARD_ACCESS: Lazy<Mutex<HAL>> = Lazy::new(|| PlantHal::create().unwrap());
|
||||
pub static STAY_ALIVE: Lazy<AtomicBool> = Lazy::new(|| AtomicBool::new(false));
|
||||
|
||||
mod webserver {
|
||||
|
Reference in New Issue
Block a user