Skip to content

Commit da71c0c

Browse files
committed
fix build for v4.6
1 parent 6b1954d commit da71c0c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/arduino_build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
platforms: |
1717
- name: esp32:esp32
1818
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
19+
- version: 2.0.13
1920
libraries: |
2021
- name: Adafruit DotStar
2122
- name: Sensirion Core

OpenCO2_Sensor.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ void loop() {
667667
errorToString(error, errorMessage, 256);
668668
displayWriteError(errorMessage);
669669
} else {
670-
extern int refreshes;
670+
extern uint16_t refreshes;
671671
if (BatteryMode || (refreshes%6 == 1)) saveMeasurement(new_co2, new_temperature, humidity);
672672
/* don't update in Battery mode, unless CO2 has changed by 3% or temperature by 0.5°C */
673673
if (!TEST_MODE && BatteryMode && comingFromDeepSleep) {

epd_abstraction.ino

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ void clearMenu() {
5050
bool buttonPressedAgain = false;
5151
void handleButtonPress() {
5252
uint8_t selectedOption = 0;
53-
extern uint16_t refreshes;
5453
refreshes = 1; // force full update
5554
comingFromDeepSleep = false; // force display update even if CO2 changed by less than 3%
5655
displayMenu(selectedOption);
@@ -575,7 +574,7 @@ void displayTempHumHistoryGraph() {
575574
for (int i = 200; i>ytemp; i--) {
576575
if (!(i%5)) Paint_DrawPoint(x, i, BLACK, DOT_PIXEL_2X2, DOT_FILL_AROUND);
577576
}
578-
Paint_DrawLine(x-1, privYhum, x, yhum, BLACK, DOT_PIXEL_1X1, LINE_STYLE_SOLID);
577+
Paint_DrawLine(x-1, privYhum, x, yhum, BLACK, DOT_PIXEL_2X2, LINE_STYLE_SOLID);
579578
privYtemp = ytemp;
580579
privYhum = yhum;
581580
}

0 commit comments

Comments
 (0)