cppcheck fixes for const

This commit is contained in:
iceman1001 committed 2022-01-06 23:20:55 +01:00
1 parent 6bb301f4da
commit d2c290c7c3
9 files changed
+18 -18

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ static uint8_t nexwatch_parity_swap(uint8_t parity) {
}
// parity check
// from 32b hex id, 4b mode,
static uint8_t nexwatch_parity(uint8_t hexid[5]) {
static uint8_t nexwatch_parity(const uint8_t hexid[5]) {
uint8_t p = 0;
for (uint8_t i = 0; i < 5; i++) {
p ^= NIBBLE_HIGH(hexid[i]);