Fixed serial compile issue
This commit is contained in:
parent
e5bb8325bd
commit
8e66213d6e
@ -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));
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user