]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/kingst-la2016/protocol.c
kingst-la2016: prefer boolean data type for bool information
[libsigrok.git] / src / hardware / kingst-la2016 / protocol.c
index 596b085c49b4d04c6de45d19a320470ab335be40..e59bae0aab48fbc15386f546fee3839d21a3ce53 100644 (file)
@@ -915,15 +915,15 @@ static uint16_t run_state(const struct sr_dev_inst *sdi)
        return state;
 }
 
-static int la2016_is_idle(const struct sr_dev_inst *sdi)
+static gboolean la2016_is_idle(const struct sr_dev_inst *sdi)
 {
        uint16_t state;
 
        state = run_state(sdi);
        if ((state & runstate_mask_idle) == runstate_patt_idle)
-               return 1;
+               return TRUE;
 
-       return 0;
+       return FALSE;
 }
 
 static int set_run_mode(const struct sr_dev_inst *sdi, uint8_t mode)