Improve comments, printing
This commit is contained in:
parent
cbb7c5d4e3
commit
36db04036c
@ -13,5 +13,5 @@ constexpr gpio_num_t wakeupButtonPin = GPIO_NUM_27;
|
|||||||
// The device also stays awake as long as a bluetooth connection is active
|
// The device also stays awake as long as a bluetooth connection is active
|
||||||
constexpr uint32_t wakeupDurationAfterButtonPress = 30;
|
constexpr uint32_t wakeupDurationAfterButtonPress = 30;
|
||||||
|
|
||||||
|
// The interval between temperature measurements
|
||||||
constexpr uint32_t temperatureMeasurementIntervalSeconds = 60;
|
constexpr uint32_t temperatureMeasurementIntervalSeconds = 60;
|
||||||
|
@ -147,7 +147,6 @@ void setup() {
|
|||||||
// Happens only once per power cycle
|
// Happens only once per power cycle
|
||||||
temperatureConfigure();
|
temperatureConfigure();
|
||||||
|
|
||||||
// TODO: Remove
|
|
||||||
Serial.println("Setup complete");
|
Serial.println("Setup complete");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -165,9 +165,6 @@ void temperatureConfigure() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Serial.print(availableSensorCount);
|
|
||||||
Serial.println(" temperature sensors available");
|
|
||||||
|
|
||||||
// Write sensor resolution and set limits
|
// Write sensor resolution and set limits
|
||||||
if (sensorInterface.writeScratchpadAll(
|
if (sensorInterface.writeScratchpadAll(
|
||||||
TEMPERATURE_ALARM_LIMIT_HIGH,
|
TEMPERATURE_ALARM_LIMIT_HIGH,
|
||||||
|
Loading…
Reference in New Issue
Block a user