Skip to content

Commit

Permalink
init w/o save
Browse files Browse the repository at this point in the history
  • Loading branch information
uhuruhashimoto committed Mar 2, 2023
1 parent c5eb696 commit 0031c50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use analytics::algo_store::AlgoStore;
use app::protobufs;
use mesh::serial_connection::{MeshConnection, SerialConnection};
use serde::{Deserialize, Serialize};
use std::sync::Arc;
use std::{sync::Arc, collections::HashMap};
use tauri::{async_runtime, Manager};

struct ActiveSerialConnection {
Expand Down Expand Up @@ -70,7 +70,7 @@ fn main() {
})
.manage(ActiveMeshState {
inner: Arc::new(async_runtime::Mutex::new(Some(
analytics::state::State::new(),
analytics::state::State::new(HashMap::new(), false),
))),
})
.invoke_handler(tauri::generate_handler![
Expand Down Expand Up @@ -105,7 +105,7 @@ async fn connect_to_serial_port(
let mut connection = SerialConnection::new();
let new_device = mesh::device::MeshDevice::new();
let new_graph = mesh::device::MeshGraph::new();
let state = analytics::state::State::new();
let state = analytics::state::State::new(HashMap::new(), false);

connection.connect(app_handle.clone(), port_name, 115_200)?;
connection.configure(new_device.config_id)?;
Expand Down

0 comments on commit 0031c50

Please sign in to comment.