Fixed serial compile issue

This commit is contained in:
Carl Klemm 2019-05-18 16:00:48 +02:00
parent e5bb8325bd
commit 8e66213d6e
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ int serialport_set_config(int fd, int baud)
return 0;
}
int serialport_init(const char* device, int baud, bool block = false)
int serialport_init(const char* device, int baud, bool block)
{
int fd;
fd = open(device, O_RDWR | O_NOCTTY | (block ? 0 : O_NONBLOCK));

View File

@ -22,7 +22,7 @@ void printRates();
int serialport_set_config(int fd, int baud);
int serialport_init(const char* device, int baud = BAUDRATE);
int serialport_init(const char* device, int baud = BAUDRATE, bool block = false);
#endif // SERIAL_H