]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/demo/demo.c
Remove some unneeded double-spaces.
[libsigrok.git] / src / hardware / demo / demo.c
index baf715ba50f866f651055c17286941614a40c0b4..a1f8c6bf121b8040913212114c0314d008376518 100644 (file)
 
 #define LOG_PREFIX "demo"
 
-#define DEFAULT_NUM_LOGIC_CHANNELS     8
-#define DEFAULT_NUM_ANALOG_CHANNELS    4
+#define DEFAULT_NUM_LOGIC_CHANNELS     8
+#define DEFAULT_NUM_ANALOG_CHANNELS    4
 
 /* The size in bytes of chunks to send through the session bus. */
-#define LOGIC_BUFSIZE        4096
+#define LOGIC_BUFSIZE                  4096
 /* Size of the analog pattern space per channel. */
-#define ANALOG_BUFSIZE       4096
+#define ANALOG_BUFSIZE                 4096
 
-#define DEFAULT_ANALOG_AMPLITUDE 10
-#define ANALOG_SAMPLES_PER_PERIOD 20
+#define DEFAULT_ANALOG_AMPLITUDE       10
+#define ANALOG_SAMPLES_PER_PERIOD      20
 
 /* Logic patterns we can generate. */
 enum {
@@ -663,10 +663,8 @@ static void logic_generator(struct sr_dev_inst *sdi, uint64_t size)
 }
 
 static void send_analog_packet(struct analog_gen *ag,
-                              struct sr_dev_inst *sdi,
-                              uint64_t *analog_sent,
-                              uint64_t analog_pos,
-                              uint64_t analog_todo)
+               struct sr_dev_inst *sdi, uint64_t *analog_sent,
+               uint64_t analog_pos, uint64_t analog_todo)
 {
        struct sr_datafeed_packet packet;
        struct dev_context *devc;