mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 14:44:19 -06:00
Initial work for a controller GUI
This commit is contained in:
parent
29d64107de
commit
c06ce3b58c
7 changed files with 276 additions and 6 deletions
|
@ -16,7 +16,9 @@ namespace asio = boost::asio;
|
|||
|
||||
class GCodeSender : private boost::noncopyable {
|
||||
public:
|
||||
GCodeSender(std::string devname, unsigned int baud_rate);
|
||||
GCodeSender();
|
||||
~GCodeSender();
|
||||
bool connect(std::string devname, unsigned int baud_rate);
|
||||
void send(const std::vector<std::string> &lines);
|
||||
void send(const std::string &s);
|
||||
void disconnect();
|
||||
|
@ -39,6 +41,7 @@ class GCodeSender : private boost::noncopyable {
|
|||
bool can_send;
|
||||
size_t sent;
|
||||
|
||||
void set_baud_rate(unsigned int baud_rate);
|
||||
void set_error_status(bool e);
|
||||
void do_close();
|
||||
void do_read();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue