Skip to content

Commit

Permalink
fix build for v4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkreidler committed Jun 25, 2024
1 parent 6b1954d commit da4645f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/arduino_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
platforms: |
- name: esp32:esp32
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
version: 2.0.13
libraries: |
- name: Adafruit DotStar
- name: Sensirion Core
Expand Down
2 changes: 1 addition & 1 deletion OpenCO2_Sensor.ino
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ void loop() {
errorToString(error, errorMessage, 256);
displayWriteError(errorMessage);
} else {
extern int refreshes;
extern uint16_t refreshes;
if (BatteryMode || (refreshes%6 == 1)) saveMeasurement(new_co2, new_temperature, humidity);
/* don't update in Battery mode, unless CO2 has changed by 3% or temperature by 0.5°C */
if (!TEST_MODE && BatteryMode && comingFromDeepSleep) {
Expand Down
3 changes: 1 addition & 2 deletions epd_abstraction.ino
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ void clearMenu() {
bool buttonPressedAgain = false;
void handleButtonPress() {
uint8_t selectedOption = 0;
extern uint16_t refreshes;
refreshes = 1; // force full update
comingFromDeepSleep = false; // force display update even if CO2 changed by less than 3%
displayMenu(selectedOption);
Expand Down Expand Up @@ -575,7 +574,7 @@ void displayTempHumHistoryGraph() {
for (int i = 200; i>ytemp; i--) {
if (!(i%5)) Paint_DrawPoint(x, i, BLACK, DOT_PIXEL_2X2, DOT_FILL_AROUND);
}
Paint_DrawLine(x-1, privYhum, x, yhum, BLACK, DOT_PIXEL_1X1, LINE_STYLE_SOLID);
Paint_DrawLine(x-1, privYhum, x, yhum, BLACK, DOT_PIXEL_2X2, LINE_STYLE_SOLID);
privYtemp = ytemp;
privYhum = yhum;
}
Expand Down

0 comments on commit da4645f

Please sign in to comment.