cederom commented on code in PR #17139:
URL: https://github.com/apache/nuttx/pull/17139#discussion_r2392628117


##########
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:
   Thanks @halyssonJr :-) Should we do some assert here to verify if provided 
parameters belong to the table? Is table 256 bytes long? :-)



-- 
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]

Reply via email to