]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/beaglelogic/api.c
Build: Include <config.h> first in all source files
[libsigrok.git] / src / hardware / beaglelogic / api.c
index 12af5c1db6660891406128b93879f8409ced74fd..1c8e43b84f55f722142b356547b367cd926a2fe4 100644 (file)
@@ -17,6 +17,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <config.h>
 #include "protocol.h"
 #include "beaglelogic.h"
 
@@ -165,6 +166,7 @@ static int dev_open(struct sr_dev_inst *sdi)
        /* Set fd and local attributes */
        devc->pollfd.fd = devc->fd;
        devc->pollfd.events = G_IO_IN;
+       devc->pollfd.revents = 0;
 
        /* Get the default attributes */
        beaglelogic_get_samplerate(devc);