Use HDLC_FCS helper where possible

This commit is contained in:
Marcel Holtmann 2010-04-23 17:22:56 +02:00
parent 2a609f9054
commit d2c8f124e6
1 changed files with 1 additions and 1 deletions

View File

@ -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++]);
}