oops, fix serial_flush()
This commit is contained in:
parent
06d64eb880
commit
f0551a6543
|
@ -98,8 +98,7 @@ int serial_close(int fd)
|
|||
int serial_flush(int fd)
|
||||
{
|
||||
|
||||
tcflush(fd, TCIOFLUSH);
|
||||
|
||||
return tcflush(fd, TCIOFLUSH);
|
||||
}
|
||||
|
||||
void *serial_backup_params(int fd)
|
||||
|
|
1
sigrok.h
1
sigrok.h
|
@ -429,6 +429,7 @@ int ezusb_upload_firmware(libusb_device *dev, int configuration,
|
|||
GSList *list_serial_ports(void);
|
||||
int serial_open(const char *pathname, int flags);
|
||||
int serial_close(int fd);
|
||||
int serial_flush(int fd);
|
||||
void *serial_backup_params(int fd);
|
||||
void serial_restore_params(int fd, void *backup);
|
||||
int serial_set_params(int fd, int speed, int bits, int parity, int stopbits,
|
||||
|
|
Loading…
Reference in New Issue