Small Improvements
This commit is contained in:
11
marlin2.h
11
marlin2.h
@@ -11,18 +11,17 @@ class Marlin2 : public PollingComponent , public uart::UARTDevice {
|
||||
void setup() override;
|
||||
float get_setup_priority() const override { return setup_priority::LATE; }
|
||||
void update() override;
|
||||
void add_sensor(const std::string& sName, sensor::Sensor *sens);
|
||||
sensor::Sensor* find_sensor(std::string key);
|
||||
|
||||
protected:
|
||||
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(int* d, int* h, int* m, unsigned long* current, unsigned long* remaining)
|
||||
int process_print_time_msg(int* d, int* h, int* m, unsigned long* current, unsigned long* remaining);
|
||||
|
||||
std::string MarlinOutput;
|
||||
|
||||
sensor::Sensor *bed_temperature_sensor;
|
||||
sensor::Sensor *ext_temperature_sensor;
|
||||
sensor::Sensor *print_progress_sensor;
|
||||
|
||||
std::vector<std::pair<std::string, sensor::Sensor *>> sensors;
|
||||
|
||||
private:
|
||||
unsigned long millisProgress=0;
|
||||
|
Reference in New Issue
Block a user