acassis commented on code in PR #17139:
URL: https://github.com/apache/nuttx/pull/17139#discussion_r2392762518
##########
libs/libc/misc/lib_crc8rohc.c:
##########
@@ -88,3 +88,12 @@ uint8_t crc8rohc(FAR const uint8_t *src, size_t len)
{
return crc8rohcpart(src, len, 0xff);
}
+
+/****************************************************************************
+ * Name: crc8rohcincr
+ ****************************************************************************/
+
+uint8_t crc8rohcincr(uint8_t data_byte, uint8_t crc8val)
+{
+ return g_crc8_tab[crc8val ^ data_byte];
Review Comment:
@cederom it is uint8_t, it cannot be longer than 256 :-)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]