mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 15:13:58 -06:00
Handle log, temperatures. Move controller to main tabpanel. More things
This commit is contained in:
parent
3ab4d4b094
commit
9af43bee52
8 changed files with 204 additions and 58 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue