Problem
The write_reg and read_reg functions do not validate the reg parameter beyond the uint8_t range. Adding validation for valid LIS3DH register addresses could help with debuggability.
Security Consideration
Low severity - hardware will NACK invalid addresses and ESP-IDF handles errors appropriately.
File
- firmware/main/accelerometer.cpp
Problem
The write_reg and read_reg functions do not validate the reg parameter beyond the uint8_t range. Adding validation for valid LIS3DH register addresses could help with debuggability.
Security Consideration
Low severity - hardware will NACK invalid addresses and ESP-IDF handles errors appropriately.
File