summaryrefslogtreecommitdiff
path: root/packet.c
diff options
context:
space:
mode:
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/packet.c b/packet.c
index 3b92a2bd..9eb5f2fd 100644
--- a/packet.c
+++ b/packet.c
@@ -1021,6 +1021,12 @@ static void character_discard(struct gps_packet_t *lexer)
/* entry points begin here */
+void packet_init(struct gps_packet_t *lexer)
+{
+ lexer->char_counter = 0;
+ lexer->retry_counter = 0;
+}
+
void packet_parse(struct gps_packet_t *lexer)
/* grab a packet from the input buffer */
{