/*
- * This file is part of the sigrok project.
+ * This file is part of the libsigrok project.
*
* Copyright (C) 2013 Bert Vermeulen <bert@biot.com>
*
num_channels++;
}
- if (revents == G_IO_IN) {
+ if (revents == G_IO_IN && devc->num_samples < devc->limit_samples) {
if (serial_read(serial, &byte, 1) != 1)
return FALSE;
serial_flush(serial);
abort_acquisition(sdi);
- serial_close(serial);
}
return TRUE;