From d2c8f124e60e486d50b346a79f7220cbf443cc6f Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 23 Apr 2010 17:22:56 +0200 Subject: [PATCH] Use HDLC_FCS helper where possible --- gatchat/gathdlc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gatchat/gathdlc.c b/gatchat/gathdlc.c index fcf53162..4ce6c610 100644 --- a/gatchat/gathdlc.c +++ b/gatchat/gathdlc.c @@ -344,7 +344,7 @@ gboolean g_at_hdlc_send(GAtHDLC *hdlc, const unsigned char *data, gsize size) pos = 0; while (size--) { - fcs = crc_ccitt_byte(fcs, data[i]); + fcs = HDLC_FCS(fcs, data[i]); hdlc_put(hdlc, buf, &pos, data[i++]); }