sensord: fix redundant assignment (#33707)

fix redundant assignment
pull/33702/head^2
Dean Lee 7 months ago committed by GitHub
parent af609212f7
commit 7fa8e3d8a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      system/sensord/sensors/lsm6ds3_gyro.cc

@ -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;
}

Loading…
Cancel
Save