Skip to content

Commit

Permalink
Merge pull request #31 from adafruit/fix-ci
Browse files Browse the repository at this point in the history
Fix ci due to warnings
  • Loading branch information
PaintYourDragon authored Nov 2, 2022
2 parents 73c1425 + e61d4f9 commit 77fa38d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/githubci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/setup-python@v1
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- uses: actions/checkout@v2
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
repository: adafruit/ci-arduino
path: ci
Expand Down
1 change: 0 additions & 1 deletion examples/thermal_cam_interpolate/interpolation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ void get_adjacents_2d(float *src, float *dest, uint8_t rows, uint8_t cols,
int8_t x, int8_t y) {
// Serial.print("("); Serial.print(x); Serial.print(", "); Serial.print(y);
// Serial.println(")");
float arr[4];
for (int8_t delta_y = -1; delta_y < 3; delta_y++) { // -1, 0, 1, 2
float *row = dest + 4 * (delta_y + 1); // index into each chunk of 4
for (int8_t delta_x = -1; delta_x < 3; delta_x++) { // -1, 0, 1, 2
Expand Down
3 changes: 1 addition & 2 deletions examples/thermal_cam_interpolate/thermal_cam_interpolate.ino
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,7 @@ void drawpixels(float *p, uint8_t rows, uint8_t cols, uint8_t boxWidth, uint8_t
uint8_t colorIndex = map(colorTemp, MINTEMP, MAXTEMP, 0, 255);
colorIndex = (uint8_t)constrain((int16_t)colorIndex, (int16_t)0, (int16_t)255);
//draw the pixels!
uint16_t color;
color = val * 2;
//uint16_t color = val * 2;
tft.fillRect(40+boxWidth * x, boxHeight * y, boxWidth, boxHeight, camColors[colorIndex]);

if (showVal) {
Expand Down

0 comments on commit 77fa38d

Please sign in to comment.