Typo fix on the Linux/OSX side of things.

This commit is contained in:
David Given
2021-06-04 23:36:25 +02:00
parent 192427cf80
commit 0d59d3d195

View File

@@ -104,7 +104,9 @@
#else #else
#include <termios.h> #include <termios.h>
static int open_serial_port(const std::string& name)
typedef int FileHandle;
static FileHandle open_serial_port(const std::string& name)
{ {
int fd = open(name.c_str(), O_RDWR); int fd = open(name.c_str(), O_RDWR);
if (fd == -1) if (fd == -1)