Skip to content

Commit 700f387

Browse files
committed
build pass
1 parent 67e1756 commit 700f387

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/components/pixels/controller.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ PixelsController::PixelsController() {
3030
*/
3131
/**************************************************************************/
3232
PixelsController::~PixelsController() {
33-
delete _pixels_model;
34-
delete _pixel_strands;
33+
for (int i = 0; i < _num_strands; i++) {
34+
delete _pixel_strands[i];
35+
}
3536
_num_strands = 0;
37+
delete _pixels_model;
3638
}
3739

3840
/**************************************************************************/

src/components/pixels/hardware.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ bool PixelsHardware::AddDotStar(uint16_t num_pixels, uint16_t pin_data,
103103
WS_DEBUG_PRINT(pin_data);
104104
WS_DEBUG_PRINT(" and clock pin ");
105105
WS_DEBUG_PRINT(pin_clock);
106+
return true;
106107
}
107108

108109
/**************************************************************************/

src/components/pixels/hardware.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ class PixelsHardware {
4646
uint16_t GetPinData();
4747
void FillStrand(uint32_t color);
4848
void RemoveStrand();
49-
5049
private:
5150
Adafruit_NeoPixel *_neopixel = nullptr; ///< Used for NeoPixel pixel strands
5251
Adafruit_DotStar *_dotstar = nullptr; ///< Used for DotStar pixel strands

0 commit comments

Comments
 (0)