Minor bugs in lsm6dsm.c
In function lsm_memcmp
the second return should be LSM6DSM_SUCCESS
instead of 0
(Does not affect anything, only for readability).
In function lsm6dsm_setup_communication
for LSM_CHECK_REG_SIZE_COMPILE_TIME(lsm6dsm_registers_t, 0x80)
LSM6DSM_REG_SIZE
can be used instead of 0x80
.
In function lsm6dsm_setup_check
function call lsm_memcmp(LSM6DSM_SCT_TO_P(configs->reg), LSM6DSM_SCT_TO_P(buff_regs), LSM6DSM_REG_SIZE - 1)
should probably be without - 1
after reg size.