Set up CI with Azure Pipelines

This commit is contained in:
Milek7
2019-02-25 16:34:40 +01:00
committed by milek7
parent 267c4472a3
commit 8a5ca4e05a
3 changed files with 76 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ uart_input::uart_input()
if (sp_get_port_by_name(conf.port.c_str(), &port) != SP_OK)
throw std::runtime_error("uart: cannot find specified port");
if (sp_open(port, SP_MODE_READ_WRITE) != SP_OK)
if (sp_open(port, (sp_mode)(SP_MODE_READ | SP_MODE_WRITE)) != SP_OK)
throw std::runtime_error("uart: cannot open port");
sp_port_config *config;