Skip to content

Commit 5cb5076

Browse files
committed
MCU8MASS-1098 Add pullup to reset pin
1 parent f1f638f commit 5cb5076

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/sandbox/sandbox.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ void setup() {
288288
attachInterrupt(PIN_PD2, sendHeartbeatInterrupt, FALLING);
289289

290290
// Set PF6 as input (reset button)
291-
pinConfigure(PIN_PF6, PIN_DIR_INPUT);
291+
pinConfigure(PIN_PF6, PIN_DIR_INPUT | PIN_PULLUP_ON);
292292
attachInterrupt(PIN_PF6, resetInterrupt, FALLING);
293293

294294
sei();
@@ -517,7 +517,7 @@ void loop() {
517517
\"Light Intensity\": %d \
518518
} \
519519
}",
520-
int(Mcp9808.readTempC()),
520+
int(Mcp9808.readTemperatureCelsius()),
521521
Veml3328.getRed());
522522

523523
if (!MqttClient.publish(mqtt_pub_topic, transmit_buffer)) {

0 commit comments

Comments
 (0)