Skip to content

Commit 886ed9a

Browse files
committed
Remove useless code
1 parent 23366c6 commit 886ed9a

File tree

2 files changed

+2
-43
lines changed

2 files changed

+2
-43
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=STM32duino VL53L7CX
2-
version=1.0.0
2+
version=1.0.1
33
author=STMicroelectronics
44
maintainer=stm32duino
55
sentence=Allows controlling the VL53L7CX (Time-of-Flight 8x8 multizone ranging sensor with wide field view)

src/vl53l7cx_api.cpp

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -835,10 +835,7 @@ uint8_t VL53L7CX::vl53l7cx_get_resolution(uint8_t *p_resolution)
835835
status |= vl53l7cx_dci_read_data(p_dev->temp_buffer,
836836
VL53L7CX_DCI_ZONE_CONFIG, 8);
837837
*p_resolution = p_dev->temp_buffer[0x00] * p_dev->temp_buffer[0x01];
838-
//Serial.print('00:');
839-
Serial.print(p_dev->temp_buffer[0x01]);
840-
//Serial.print(' 01:');
841-
//Serial.println( p_dev->temp_buffer[0x01]);
838+
842839
return status;
843840
}
844841

@@ -1068,44 +1065,6 @@ uint8_t VL53L7CX::vl53l7cx_set_ranging_mode(uint8_t ranging_mode)
10681065

10691066
return status;
10701067
}
1071-
/*
1072-
uint8_t VL53L7CX::vl53l7cx_enable_internal_cp(
1073-
)
1074-
{
1075-
uint8_t status = VL53L7CX_STATUS_OK;
1076-
uint8_t vcsel_bootup_fsm = 1;
1077-
uint8_t analog_dynamic_pad_0 = 0;
1078-
1079-
status |= vl53l7cx_dci_replace_data(p_dev->temp_buffer,
1080-
VL53L7CX_DCI_INTERNAL_CP, 16,
1081-
(uint8_t*)&vcsel_bootup_fsm, 1, 0x0A);
1082-
1083-
status |= vl53l7cx_dci_replace_data(p_dev->temp_buffer,
1084-
VL53L7CX_DCI_INTERNAL_CP, 16,
1085-
(uint8_t*)&analog_dynamic_pad_0, 1, 0x0E);
1086-
1087-
return status;
1088-
}
1089-
1090-
1091-
uint8_t VL53L7CX::vl53l7cx_disable_internal_cp(
1092-
)
1093-
{
1094-
uint8_t status = VL53L7CX_STATUS_OK;
1095-
uint8_t vcsel_bootup_fsm = 0;
1096-
uint8_t analog_dynamic_pad_0 = 1;
1097-
1098-
status |= vl53l7cx_dci_replace_data(p_dev->temp_buffer,
1099-
VL53L7CX_DCI_INTERNAL_CP, 16,
1100-
(uint8_t*)&vcsel_bootup_fsm, 1, 0x0A);
1101-
1102-
status |= vl53l7cx_dci_replace_data(p_dev->temp_buffer,
1103-
VL53L7CX_DCI_INTERNAL_CP, 16,
1104-
(uint8_t*)&analog_dynamic_pad_0, 1, 0x0E);
1105-
1106-
return status;
1107-
}
1108-
*/
11091068

11101069
uint8_t VL53L7CX::vl53l7cx_dci_read_data(
11111070
uint8_t *data,

0 commit comments

Comments
 (0)