]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/cem-dt-885x/protocol.h
Improve readability and clarity of some numbers.
[libsigrok.git] / src / hardware / cem-dt-885x / protocol.h
index 233ef8603876d103e0c403cd23daca8ed3e06303..1f0e191b0d1d9468940ec9e9ec27e9d343790a5f 100644 (file)
 #define SAMPLES_PER_PACKET 50
 
 /* Various temporary storage, at least 8 bytes. */
-#define BUF_SIZE SAMPLES_PER_PACKET * 2
+#define BUF_SIZE (SAMPLES_PER_PACKET * 2)
 
 /* When in hold mode, force the last measurement out at this interval.
  * We're using 50ms, which duplicates the non-hold 20Hz update rate. */
-#define HOLD_REPEAT_INTERVAL 50 * 1000
+#define HOLD_REPEAT_INTERVAL (50 * 1000)
 
 enum {
        TOKEN_WEIGHT_TIME_FAST = 0x02,