Skip to content

Commit ef28fbb

Browse files
authored
Fix up some things that have changed with Prusa Slicer (#248)
1 parent 4fce706 commit ef28fbb

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
]) ++ pkgs.lib.optionals pkgs.stdenv.isDarwin (with pkgs; [
6565
libiconv
6666
darwin.apple_sdk.frameworks.Security
67+
darwin.apple_sdk.frameworks.SystemConfiguration
6768
]);
6869

6970
LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib";

src/slicer/prusa.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ impl ThreeMfSlicerTrait for Slicer {
129129
// Find the prusaslicer executable path on macOS.
130130
#[cfg(target_os = "macos")]
131131
fn find_prusa_slicer() -> Result<PathBuf> {
132-
let app_path = PathBuf::from("/Applications/PrusaSlicer.app/Contents/MacOS/PrusaSlicer");
132+
let app_path = PathBuf::from("/Applications/Original Prusa Drivers/PrusaSlicer.app/Contents/MacOS/PrusaSlicer");
133133
if app_path.exists() {
134134
Ok(app_path)
135135
} else {

src/usb/control.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ impl ControlTrait for Usb {
137137
}
138138

139139
async fn state(&self) -> Result<MachineState> {
140-
Ok(MachineState::Unknown)
140+
Ok(MachineState::Idle)
141141
}
142142

143143
async fn progress(&self) -> Result<Option<f64>> {

0 commit comments

Comments
 (0)