Additional Fixes

This commit is contained in:
2024-12-28 16:57:08 +01:00
parent 59a1cc6a1a
commit fe2d7ab342
2 changed files with 28 additions and 14 deletions

View File

@@ -22,11 +22,13 @@ class Marlin2 : public PollingComponent, /*public text_sensor::TextSensor,*/ pub
void process_line();
int process_temp_msg(float* ext_temperature, float* ext_set_temperature, float* bed_temperature, float* bed_set_temperature);
float process_progress_msg();
int process_print_time_msg(double* current, double* remaining);
int process_print_time_msg(double* current, double* remaining, float progress);
std::string MarlinOutput;
std::string MarlinTime;
std::string PrinterState;
float print_progress = 0;
std::vector<std::pair<std::string, sensor::Sensor *>> sensors;
// std::vector<std::pair<std::string, text_sensor::TextSensor *>> text_sensors;