src/vl53l1x.cpp
void Vl53l1x::stopContinuous()
{
  writeReg(SYSTEM__MODE_START, 0x80); // mode_range__abort

  // VL53L1_low_power_auto_data_stop_range() begin

  calibrated = false;

  // "restore vhv configs"
  if (saved_vhv_init != 0)
  {
    writeReg(VHV_CONFIG__INIT, saved_vhv_init);
  }
  if (saved_vhv_timeout != 0)
  {
     writeReg(VHV_CONFIG__TIMEOUT_MACROP_LOOP_BOUND, saved_vhv_timeout);
  }

  // "remove phasecal override"
  writeReg(PHASECAL_CONFIG__OVERRIDE, 0x00);

  // VL53L1_low_power_auto_data_stop_range() end
}
// Stop continuous measurements
// based on VL53L1_stop_range()
Stop continuous measurements
based on VL53L1_stop_range()
Stop continuous measurements based on VL53L1_stop_range ()
void Vl53l1x::stopContinuous()
{
  writeReg(SYSTEM__MODE_START, 0x80); 
  calibrated = false;
  if (saved_vhv_init != 0)
  {
    writeReg(VHV_CONFIG__INIT, saved_vhv_init);
  }
  if (saved_vhv_timeout != 0)
  {
     writeReg(VHV_CONFIG__TIMEOUT_MACROP_LOOP_BOUND, saved_vhv_timeout);
  }
  writeReg(PHASECAL_CONFIG__OVERRIDE, 0x00);
}
void Vl53l1x :: stopContinuous ( ) { writeReg ( SYSTEM__MODE_START , 0x80 ) ; calibrated = false ; if ( saved_vhv_init != 0 ) { writeReg ( VHV_CONFIG__INIT , saved_vhv_init ) ; } if ( saved_vhv_timeout != 0 ) { writeReg ( VHV_CONFIG__TIMEOUT_MACROP_LOOP_BOUND , saved_vhv_timeout ) ; } writeReg ( PHASECAL_CONFIG__OVERRIDE , 0x00 ) ; }
Stop continuous measurements
based on VL53L1_stop_range()
Stop continuous measurements based on VL53L1_stop_range ()
// mode_range__abort // VL53L1_low_power_auto_data_stop_range() begin // "restore vhv configs" // "remove phasecal override" // VL53L1_low_power_auto_data_stop_range() end