mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-03 02:22:46 +00:00
Handle log, temperatures. Move controller to main tabpanel. More things
This commit is contained in:
@@ -27,6 +27,9 @@ class GCodeSender : private boost::noncopyable {
|
||||
size_t queue_size() const;
|
||||
void pause_queue();
|
||||
void resume_queue();
|
||||
std::vector<std::string> purge_log();
|
||||
std::string getT() const;
|
||||
std::string getB() const;
|
||||
|
||||
private:
|
||||
asio::io_service io;
|
||||
@@ -46,6 +49,11 @@ class GCodeSender : private boost::noncopyable {
|
||||
size_t sent;
|
||||
std::string last_sent;
|
||||
|
||||
// this mutex guards log, T, B
|
||||
mutable boost::mutex log_mutex;
|
||||
std::queue<std::string> log;
|
||||
std::string T, B;
|
||||
|
||||
void set_baud_rate(unsigned int baud_rate);
|
||||
void set_error_status(bool e);
|
||||
void do_send(const std::string &line);
|
||||
|
||||
Reference in New Issue
Block a user