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:
Patrice Côté 2023-01-25 08:58:59 -05:00 committed by GitHub
parent bf782028ac
commit 2a757b1b95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -474,7 +474,8 @@ 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",