File tree Expand file tree Collapse file tree 2 files changed +39
-6
lines changed
Expand file tree Collapse file tree 2 files changed +39
-6
lines changed Original file line number Diff line number Diff line change 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
2526 - name: esp32-waveshare-epd
2627 source-path: ./esp32-waveshare-epd
2728 sketch-paths : |
28- - .
29+ - .
30+
31+ - name : Stage firmware into ./build/... and rename to FIRMWARE.BIN
32+ shell : bash
33+ run : |
34+ set -euo pipefail
35+
36+ BIN="$(
37+ find /home/runner -type f -name 'OpenCO2_Sensor.ino.bin' \
38+ ! -name '*bootloader*' \
39+ ! -name '*partitions*' \
40+ ! -name '*ota_data_initial*' \
41+ 2>/dev/null \
42+ | head -n 1
43+ )"
44+
45+ if [[ -z "${BIN:-}" || ! -f "$BIN" ]]; then
46+ echo "ERROR: Could not find OpenCO2_Sensor.ino.bin on runner."
47+ echo "Debug: listing any .ino.bin files under /home/runner:"
48+ find /home/runner -type f -name '*.ino.bin' 2>/dev/null | head -n 200 || true
49+ exit 1
50+ fi
51+
52+ echo "Found firmware: $BIN"
53+ mkdir -p build/esp32.esp32.esp32s2
54+ cp "$BIN" build/esp32.esp32.esp32s2/OpenCO2_Sensor.ino.bin
55+ cp build/esp32.esp32.esp32s2/OpenCO2_Sensor.ino.bin FIRMWARE.BIN
56+
57+ - name : Upload FIRMWARE.BIN artifact
58+ uses : actions/upload-artifact@v4
59+ with :
60+ name : FIRMWARE.BIN
61+ path : FIRMWARE.BIN
Original file line number Diff line number Diff line change @@ -317,7 +317,7 @@ void loadCredentials() {
317317
318318float 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
You can’t perform that action at this time.
0 commit comments