mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-11 22:32:55 +02:00
WIP: Fixing serial for Boost 1.70.0 and newer
This commit is contained in:
1 parent
ee2b6abd61
commit
6da1c98139
1 file changed
+7
-1
@@ -384,7 +384,13 @@ void Serial::reset_line_num()
|
||||
|
||||
bool Serial::read_line(unsigned timeout, std::string &line, error_code &ec)
|
||||
{
|
||||
auto &io_service = get_io_service();
|
||||
auto& io_service =
|
||||
#if BOOST_VERSION >= 107000
|
||||
//FIXME this is most certainly wrong!
|
||||
(boost::asio::io_context&)this->get_executor().context();
|
||||
#else
|
||||
this->get_io_service();
|
||||
#endif
|
||||
asio::deadline_timer timer(io_service);
|
||||
char c = 0;
|
||||
bool fail = false;
|
||||
|
||||
Reference in new issue
Block a user