Skip to content

Commit 8391df2

Browse files
authored
Merge pull request #26 from adafruit/actionci
actionified, formatted and doxy'd
2 parents c735e72 + d560ec3 commit 8391df2

File tree

5 files changed

+39
-36
lines changed

5 files changed

+39
-36
lines changed

.github/workflows/githubci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Arduino Library CI
2+
3+
on: [pull_request, push, repository_dispatch]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/setup-python@v1
11+
with:
12+
python-version: '3.x'
13+
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v2
15+
with:
16+
repository: adafruit/ci-arduino
17+
path: ci
18+
19+
- name: pre-install
20+
run: bash ci/actions_install.sh
21+
22+
- name: test platforms
23+
run: python3 ci/build_platform.py main_platforms
24+
25+
- name: clang
26+
run: python3 ci/run-clang-format.py -e "ci/*" -e "bin/*" -r .
27+
28+
- name: doxygen
29+
env:
30+
GH_REPO_TOKEN: ${{ secrets.GH_REPO_TOKEN }}
31+
PRETTYNAME : "Adafruit SHT31-D Library"
32+
run: bash ci/doxy_gen_and_deploy.sh

.travis.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

Adafruit_SHT31.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,17 +135,17 @@ bool Adafruit_SHT31::readTempHum(void) {
135135
readbuffer[5] != crc8(readbuffer + 3, 2))
136136
return false;
137137

138-
int32_t stemp = (int32_t) (((uint32_t)readbuffer[0] << 8) | readbuffer[1]);
138+
int32_t stemp = (int32_t)(((uint32_t)readbuffer[0] << 8) | readbuffer[1]);
139139
// simplified (65536 instead of 65535) integer version of:
140-
//temp = (stemp * 175.0f) / 65535.0f - 45.0f;
140+
// temp = (stemp * 175.0f) / 65535.0f - 45.0f;
141141
stemp = ((4375 * stemp) >> 14) - 4500;
142-
temp = (float) stemp / 100.0f;
142+
temp = (float)stemp / 100.0f;
143143

144144
uint32_t shum = ((uint32_t)readbuffer[3] << 8) | readbuffer[4];
145145
// simplified (65536 instead of 65535) integer version of:
146-
//humidity = (shum * 100.0f) / 65535.0f;
146+
// humidity = (shum * 100.0f) / 65535.0f;
147147
shum = (625 * shum) >> 12;
148-
humidity = (float) shum / 100.0f;
148+
humidity = (float)shum / 100.0f;
149149

150150
return true;
151151
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Adafruit SHT31-D Temperature and Humidity Sensor Breakout [![Build Status](https://travis-ci.com/adafruit/Adafruit_SHT31.svg?branch=master)](https://travis-ci.com/adafruit/Adafruit_SHT31)
1+
# Adafruit SHT31-D Temperature and Humidity Sensor Breakout [![Build Status](https://github.com/adafruit/Adafruit_SHT31/workflows/Arduino%20Library%20CI/badge.svg)](https://github.com/adafruit/Adafruit_SHT31/actions)
22

33
<a href="https://www.adafruit.com/product/2857"><img src="assets/board.jpg?raw=true" width="500px"></a>
44

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Adafruit SHT31 Library
2-
version=1.1.6
2+
version=1.1.7
33
author=Adafruit
44
maintainer=Adafruit <[email protected]>
55
sentence=Arduino library for SHT31 temperature & humidity sensor.

0 commit comments

Comments
 (0)