Skip to content

Commit ebfa8d0

Browse files
authored
Merge pull request #44 from falkecarlsen/fix-sgp_41-library-bumps
Airgradient and SGP41 version bump refactor
2 parents 21180e7 + ca50a3e commit ebfa8d0

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.github/workflows/arduino.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,26 @@ jobs:
2222
2323
- name: Install AirGradient Library
2424
run: |
25-
arduino-cli lib install "AirGradient Air Quality Sensor"
25+
arduino-cli lib install "AirGradient Air Quality Sensor"@2.4.15
2626
2727
- name: Install Sensirion Core
2828
run: |
29-
arduino-cli lib install "Sensirion Core"
29+
arduino-cli lib install "Sensirion Core"@0.6.0
3030
# https://github.com/Sensirion/arduino-core/
3131
3232
- name: Install Sensirion I2C SGP41
3333
run: |
34-
arduino-cli lib install "Sensirion I2C SGP41"
34+
arduino-cli lib install "Sensirion I2C SGP41"@1.0.0
3535
# https://github.com/Sensirion/arduino-i2c-sgp41
3636
3737
- name: Install Sensirion Gas Index Algorithm
3838
run: |
39-
arduino-cli lib install "Sensirion Gas Index Algorithm"
39+
arduino-cli lib install "Sensirion Gas Index Algorithm"@3.2.2
4040
# https://github.com/Sensirion/arduino-gas-index-algorithm
4141
4242
- name: Install U8g2lib display library
4343
run: |
44-
arduino-cli lib install "U8g2"
44+
arduino-cli lib install "U8g2"@2.34.22
4545
# https://github.com/olikraus/u8g2
4646
4747
- name: Compile Sketch

AirGradient-DIY/AirGradient-DIY.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ void setup() {
129129

130130
uint16_t error;
131131
char errorMessage[256];
132-
error = sgp41.getSerialNumber(serialNumber, serialNumberSize);
132+
error = sgp41.getSerialNumber(serialNumber);
133133

134134
if (error) {
135135
Serial.print("Error trying to execute getSerialNumber(): ");

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ This project configures the AirGradient sensor for local access (instead of deli
1919

2020
Please see the README file in the respective configuration folder for more information about how to set up your AirGradient sensor.
2121

22+
## Contributing
23+
If you are adding a new library or bumping the version of an existing one, update the GitHub action [Arduino CI (`arduino.yaml`)](.github/workflows/arduino.yaml) accordingly.
24+
2225
## License
2326

2427
MIT.
@@ -27,6 +30,7 @@ MIT.
2730

2831
- [Jeff Geerling](https://www.jeffgeerling.com)
2932
- [Jordan Jones](https://github.com/kashalls)
33+
- [Falke Carlsen](https://github.com/falkecarlsen)
3034

3135
ESPHome configuration adapted from code by:
3236

0 commit comments

Comments
 (0)