From c793ae9a779e055e25f3983a65eb65c7c787858d Mon Sep 17 00:00:00 2001
From: Jaxon Taylor <jt_3232@hotmail.com>
Date: Mon, 19 Jul 2021 21:43:43 -0500
Subject: [PATCH] Fixed GNSS Synchro Decimation

Signed-off-by: Jaxon Taylor <jt_3232@hotmail.com>
---
 src/core/monitor/gnss_synchro_monitor.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/core/monitor/gnss_synchro_monitor.cc b/src/core/monitor/gnss_synchro_monitor.cc
index beb0cab30..3e8ebdea3 100644
--- a/src/core/monitor/gnss_synchro_monitor.cc
+++ b/src/core/monitor/gnss_synchro_monitor.cc
@@ -84,10 +84,10 @@ int gnss_synchro_monitor::general_work(int noutput_items __attribute__((unused))
                             udp_sink_ptr->write_gnss_synchro(stocks);
                             // Reset count variable
                             count = 0;
+                            // Consume the number of items for the input stream channel
+                            consume(channel_index, ninput_items[channel_index]);
                         }
                 }
-            // Consume the number of items for the input stream channel
-            consume(channel_index, ninput_items[channel_index]);
         }
 
     // Not producing any outputs