File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -341,12 +341,12 @@ class VL53L1 : public RangeSensor {
341
341
#ifdef DEBUG_MODE
342
342
uint8_t byteData;
343
343
uint16_t wordData;
344
- status = VL53L1_RdByte (Dev, 0x010F , &byteData);
344
+ status = VL53L1_RdByte (Dev, VL53L1_IDENTIFICATION__MODEL_ID , &byteData);
345
345
Serial.println (" VL53L1 Model_ID: " + String (byteData));
346
- status = VL53L1_RdByte (Dev, 0x0110 , &byteData);
346
+ status = VL53L1_RdByte (Dev, VL53L1_IDENTIFICATION__MODULE_TYPE , &byteData);
347
347
Serial.println (" VL53L1 Module_Type: " + String (byteData));
348
- status = VL53L1_RdWord (Dev, 0x010F , &wordData);
349
- Serial.println (" VL53L1: " + String (wordData));
348
+ status = VL53L1_RdWord (Dev, VL53L1_IDENTIFICATION__MODULE_ID , &wordData);
349
+ Serial.println (" VL53L1 Module_ID : " + String (wordData));
350
350
#endif
351
351
352
352
if (status == VL53L1_ERROR_NONE) {
You can’t perform that action at this time.
0 commit comments