mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 12:17:54 -06:00
Compatibility with klipper_estimator (#229)
Changed estimated time string in order to be fully compatible with klipper_estimator. Format is now the same as Slic3r, PrusaSlicer and SuperSlicer
This commit is contained in:
parent
bf782028ac
commit
2a757b1b95
1 changed files with 6 additions and 5 deletions
|
@ -474,15 +474,16 @@ void GCodeProcessor::TimeProcessor::post_process(const std::string& filename, st
|
||||||
if (mode == PrintEstimatedStatistics::ETimeMode::Normal || machine.enabled) {
|
if (mode == PrintEstimatedStatistics::ETimeMode::Normal || machine.enabled) {
|
||||||
char buf[128];
|
char buf[128];
|
||||||
if(!s_IsBBLPrinter)
|
if(!s_IsBBLPrinter)
|
||||||
sprintf(buf, "; estimated printing time: %s\n", get_time_dhms(machine.time).c_str());
|
// SoftFever: compatibility with klipper_estimator
|
||||||
|
sprintf(buf, "; estimated printing time (normal mode) = %s\n", get_time_dhms(machine.time).c_str());
|
||||||
else {
|
else {
|
||||||
//sprintf(buf, "; estimated printing time (%s mode) = %s\n",
|
//sprintf(buf, "; estimated printing time (%s mode) = %s\n",
|
||||||
// (mode == PrintEstimatedStatistics::ETimeMode::Normal) ? "normal" : "silent",
|
// (mode == PrintEstimatedStatistics::ETimeMode::Normal) ? "normal" : "silent",
|
||||||
// get_time_dhms(machine.time).c_str());
|
// get_time_dhms(machine.time).c_str());
|
||||||
sprintf(buf, "; model printing time: %s; total estimated time: %s\n",
|
sprintf(buf, "; model printing time: %s; total estimated time: %s\n",
|
||||||
get_time_dhms(machine.time - machine.roles_time[ExtrusionRole::erCustom]).c_str(),
|
get_time_dhms(machine.time - machine.roles_time[ExtrusionRole::erCustom]).c_str(),
|
||||||
get_time_dhms(machine.time).c_str());
|
get_time_dhms(machine.time).c_str());
|
||||||
}
|
}
|
||||||
ret += buf;
|
ret += buf;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue