You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

12 lines
226 B

#include "protocol.h"
uint8_t computesum8(char *data, size_t size)
{
uint8_t sum8 = 0;
for (unsigned i = 0; i < size; ++i)
{
sum8 += data[i];
// ESP_LOGI(TAG, "%d", sum8);
}
return sum8;
}