From abdcc80c3e9f5470f8380fc377629cc97f02fcb3 Mon Sep 17 00:00:00 2001 From: Rob Tsuk Date: Tue, 1 Mar 2022 08:01:00 -0800 Subject: [PATCH] Update for released firmware image --- Cargo.toml | 2 +- src/main.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 890dcd4..b75d62a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "crank" -version = "0.2.2" +version = "0.2.3" authors = ["Rob Tsuk "] edition = "2018" diff --git a/src/main.rs b/src/main.rs index f50e841..5eefd81 100644 --- a/src/main.rs +++ b/src/main.rs @@ -330,7 +330,7 @@ impl Build { info!("run_target"); let pdutil_path = playdate_sdk_path()?.join("bin").join(PDUTIL_NAME); - let modem_path = Path::new("/dev/cu.usbmodem00000000001A1"); + let modem_path = Path::new("/dev/cu.usbmodemPDU1_Y0005491"); let data_path = Path::new("/Volumes/PLAYDATE"); let duration = time::Duration::from_millis(100); @@ -354,7 +354,7 @@ impl Build { let games_dir = data_path.join("Games"); let game_device_dir = format!("{}.pdx", example_title); let games_target_dir = games_dir.join(&game_device_dir); - fs::create_dir_all(&games_target_dir).context("Creating game directory on device")?; + fs::create_dir(&games_target_dir).context("Creating game directory on device")?; Self::copy_directory(&pdx_dir, &games_target_dir)?; let mut cmd = Command::new("diskutil");