mirror of git://git.sysmocom.de/ofono
Use HDLC_FCS helper where possible
This commit is contained in:
parent
2a609f9054
commit
d2c8f124e6
|
@ -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++]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue