mirror of
git://sigrok.org/libserialport
synced 2023-08-10 21:13:24 +03:00
Fix bug in debug message generation in sp_flush().
This commit is contained in:
parent
59131d6028
commit
0ba3e49b45
@ -684,7 +684,7 @@ enum sp_return sp_flush(struct sp_port *port, enum sp_buffer buffers)
|
||||
if (buffers > SP_BUF_BOTH)
|
||||
RETURN_ERROR(SP_ERR_ARG, "Invalid buffer selection");
|
||||
|
||||
const char *buffer_names[] = {"input", "output", "both"};
|
||||
const char *buffer_names[] = {"no", "input", "output", "both"};
|
||||
|
||||
DEBUG("Flushing %s buffers on port %s", buffer_names[buffers], port->name);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user