oops
This commit is contained in:
parent
82c68e8770
commit
32c7b5d016
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ int main(int argc, char **argv) {
|
|||
char *device = "/dev/cu.usbserial";
|
||||
int fd = serial_port_open(device);
|
||||
|
||||
if (fd < 0) {
|
||||
if (fd > 0) {
|
||||
// listen on the serial device, this call is blocking.
|
||||
sml_transport_listen(fd, &transport_receiver);
|
||||
close(fd);
|
||||
|
|
Loading…
Add table
Reference in a new issue