Skip to content

Commit c12d9cd

Browse files
Disable dump
1 parent e713af6 commit c12d9cd

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/OpenBikeSensorFirmware.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,8 +433,8 @@ void setup() {
433433
//##############################################################
434434

435435
BMP280_active = TemperatureValue = bmp280.begin(BMP280_ADDRESS_ALT,BMP280_CHIPID);
436-
if(BMP280_active == true) TemperatureValue = bmp280.readTemperature();
437-
436+
if(BMP280_active == true)
437+
TemperatureValue = bmp280.readTemperature();
438438

439439
gps.handle();
440440

src/gps.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class Gps {
163163

164164
// MON 0x0A
165165
MON_VER = 0x040a,
166-
MON_HW = 0x090a, // Only available in M6
166+
MON_HW = 0x090a,
167167

168168
// AID 0x0B
169169
AID_INI = 0x010B, // Only available in M6

src/pgaSensor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,8 @@ bool PGASensorManager::collectSensorResults() {
429429
}
430430
else
431431
{
432+
Serial.printf("meas,%d,%d,%d,%d\n", sensorId, usResults[0].tof, usResults[0].width, usResults[0].peakAmplitude);
432433
#endif
433-
Serial.printf("meas,%d,%d,%d,%d\n", sensorId, usResults[0].tof, usResults[0].width, usResults[0].peakAmplitude);
434434

435435
sensor->echoDurationMicroseconds[lastReadingCount] = usResults[0].tof;
436436
uint16_t dist;

src/pgaSensor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
#define PGA_REG_THR_CRC 0x7f
139139

140140
#define PGA_DIAG_BUSY_MASK 0x01
141-
#define PGA_DUMP_ENABLE 1
141+
#define PGA_DUMP_ENABLE 0 // Prints raw data of the measurements, for debugging or calibration of a new transducer
142142
#define PGA_DUMP_TIME 500
143143

144144

0 commit comments

Comments
 (0)