mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-10 23:35:13 -06:00
Add elegoo centauri carbon profile (#8405)
* Added Elegoolink connection * Set Elegoo CC default bed to btPTE * Friendly output of some error codes of PrintHost * feat: Add elegoo centauri carbon profile * fix: Fix the issue where the bed type in the printer configuration does not match the bed temperature settings when multiple bed types are not supported. * feat: Modify the elegoo process parameters to disable slowdown_for_curled_perimeters. * feat: Update comment to clarify plate visibility for multi bed support, BBL printer, and selected bed type. * fix: Optimize ElegooLink upload; The code is clearer than before. * feat: Format the ElegooPrintHostSendDialog code. * fix: Remove the unnecessary instantiation attribute in the Elegoo process. * fix: Flatpak compilation failed --------- Co-authored-by: anjis <anjis.zhou@elegoo.com>
This commit is contained in:
parent
dd2f8af68b
commit
00a3e78f8a
137 changed files with 5121 additions and 47 deletions
|
@ -192,6 +192,11 @@ Http::priv::priv(const std::string &url)
|
|||
::curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
|
||||
::curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
|
||||
::curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
|
||||
|
||||
// https://everything.curl.dev/http/post/expect100.html
|
||||
// remove the Expect: header, it will add a second delay to each request,
|
||||
// if the file is uploaded in packets, it will cause the upload time to be longer
|
||||
headerlist = curl_slist_append(headerlist, "Expect:");
|
||||
}
|
||||
|
||||
Http::priv::~priv()
|
||||
|
@ -599,6 +604,21 @@ Http& Http::ca_file(const std::string &name)
|
|||
return *this;
|
||||
}
|
||||
|
||||
Http& Http::form_clear() {
|
||||
if (p) {
|
||||
if (p->form) {
|
||||
::curl_formfree(p->form);
|
||||
p->form = nullptr;
|
||||
p->form_end = nullptr;
|
||||
}
|
||||
for (auto &f : p->form_files) {
|
||||
f.ifs.close();
|
||||
}
|
||||
p->form_files.clear();
|
||||
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
Http& Http::form_add(const std::string &name, const std::string &contents)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue