Skip to content

Commit

Permalink
fix unused warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
hathach committed Nov 1, 2022
1 parent 73c1425 commit c65d2c1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
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 c65d2c1

Please sign in to comment.