Skip to content

Commit 47d77d8

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

File tree

2 files changed

+34
-3
lines changed

2 files changed

+34
-3
lines changed

.github/workflows/arduino_build.yml

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ jobs:
1010
- name: Check out repository
1111
uses: actions/checkout@v2
1212

13-
- uses: arduino/compile-sketches@v1
13+
- name: Compile sketch
14+
uses: arduino/compile-sketches@v1
1415
with:
1516
fqbn: "esp32:esp32:esp32s2"
1617
platforms: |
@@ -25,4 +26,34 @@ jobs:
2526
- name: esp32-waveshare-epd
2627
source-path: ./esp32-waveshare-epd
2728
sketch-paths: |
28-
- .
29+
- .
30+
build-path: build
31+
32+
- name: Create FIRMWARE.BIN
33+
shell: bash
34+
run: |
35+
set -euo pipefail
36+
37+
# Find the main ESP32 firmware .bin produced by Arduino build
38+
BIN="$(find build -type f -name '*.bin' \
39+
! -name '*bootloader*' \
40+
! -name '*partitions*' \
41+
! -name '*ota_data_initial*' \
42+
| head -n 1)"
43+
44+
if [[ -z "${BIN:-}" ]]; then
45+
echo "No firmware .bin found under build/"
46+
echo "Files under build/:"
47+
find build -maxdepth 5 -type f -print
48+
exit 1
49+
fi
50+
51+
echo "Found firmware bin: $BIN"
52+
cp "$BIN" FIRMWARE.BIN
53+
54+
- name: Upload firmware artifact
55+
uses: actions/upload-artifact@v4
56+
with:
57+
name: firmware
58+
path: |
59+
FIRMWARE.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)