From 5f38f2007345539fdbde8c38f8156cc592c35808 Mon Sep 17 00:00:00 2001 From: David Kocik Date: Wed, 7 Sep 2022 10:46:41 +0200 Subject: [PATCH] Turn off read only checks. Needs to be redone. --- src/slic3r/Utils/OctoPrint.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/slic3r/Utils/OctoPrint.cpp b/src/slic3r/Utils/OctoPrint.cpp index 35f90fbf8b..80dc43618f 100644 --- a/src/slic3r/Utils/OctoPrint.cpp +++ b/src/slic3r/Utils/OctoPrint.cpp @@ -427,7 +427,7 @@ bool PrusaLink::get_storage(wxArrayString& output) const }) .on_complete([&, this](std::string body, unsigned) { - BOOST_LOG_TRIVIAL(debug) << boost::format("%1%: Got storage: %2%") % name % body; + BOOST_LOG_TRIVIAL(error) << boost::format("%1%: Got storage: %2%") % name % body; try { std::stringstream ss(body); @@ -447,8 +447,9 @@ bool PrusaLink::get_storage(wxArrayString& output) const { StorageInfo si; si.name = boost::nowide::widen(*path); - si.read_only = !space; - si.free_space = space ? std::stoll(*space) : 0; + // TODO: this turns off any read only checks + si.read_only = false; //!space; + si.free_space = 1; //space ? std::stoll(*space) : 0; storage.emplace_back(std::move(si)); } }