Tiny changes in the new Duet3D dsf support code

This commit is contained in:
Lukas Matena 2020-10-19 17:23:13 +02:00
parent daeb618812
commit 197d2b968c
3 changed files with 10 additions and 8 deletions

View file

@ -177,6 +177,8 @@ void Duet::disconnect(ConnectionType connectionType) const
std::string Duet::get_upload_url(const std::string &filename, ConnectionType connectionType) const
{
assert(connectionType != ConnectionType::error);
if (connectionType == ConnectionType::dsf) {
return (boost::format("%1%machine/file/gcodes/%2%")
% get_base_url()
@ -230,6 +232,8 @@ std::string Duet::timestamp_str() const
bool Duet::start_print(wxString &msg, const std::string &filename, ConnectionType connectionType) const
{
assert(connectionType != ConnectionType::error);
bool res = false;
bool dsf = (connectionType == ConnectionType::dsf);