Skip to content

Commit cbc40ef

Browse files
committed
Adjust temperature offset value for WiFi mode
1 parent b952ef2 commit cbc40ef

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

.github/workflows/arduino_build.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- name: Check out repository
11-
uses: actions/checkout@v2
10+
- name: Checkout
11+
uses: actions/checkout@v4
1212

13-
- uses: arduino/compile-sketches@v1
13+
- name: Compile sketch
14+
uses: arduino/compile-sketches@v1
1415
with:
15-
fqbn: "esp32:esp32:esp32s2"
16+
fqbn: esp32:esp32:esp32s2
1617
platforms: |
1718
- name: esp32:esp32
1819
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
@@ -25,4 +26,10 @@ jobs:
2526
- name: esp32-waveshare-epd
2627
source-path: ./esp32-waveshare-epd
2728
sketch-paths: |
28-
- .
29+
- .
30+
31+
- name: Upload firmware as FIRMWARE.BIN
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: FIRMWARE.BIN
35+
path: build/esp32.esp32.esp32s2/OpenCO2_Sensor.ino.bin

OpenCO2_Sensor.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ void loadCredentials() {
317317

318318
float getTempOffset() {
319319
if (!BatteryMode) {
320-
if (useWiFi) return 12.2;
320+
if (useWiFi) return 11.0;
321321
return 4.4;
322322
} else {
323323
return 0.0; // was with periodic measurment 0.8

0 commit comments

Comments
 (0)