sensord: fix redundant assignment (#33707)

fix redundant assignment
This commit is contained in:
Dean Lee 2024-10-03 01:10:26 +08:00 committed by GitHub
parent af609212f7
commit 7fa8e3d8a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ int LSM6DS3_Gyro::init() {
uint8_t value = 0;
bool do_self_test = false;
const char* env_lsm_selftest =env_lsm_selftest = std::getenv("LSM_SELF_TEST");
const char* env_lsm_selftest = std::getenv("LSM_SELF_TEST");
if (env_lsm_selftest != nullptr && strncmp(env_lsm_selftest, "1", 1) == 0) {
do_self_test = true;
}