From 05521bfd3a73393d6c7066931e08fcc85e1c3ff6 Mon Sep 17 00:00:00 2001 From: cschwinne Date: Thu, 4 Mar 2021 22:17:25 +0100 Subject: [PATCH] Added destructor for BusPwm (fixes #1789) --- CHANGELOG.md | 4 ++++ wled00/bus_manager.h | 4 ++++ wled00/wled.h | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b90934d8..ef77e9e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ### Development versions after 0.11.1 release +#### Build 2103041 + +- Added destructor for BusPwm (fixes #1789) + #### Build 2103040 - Fixed relay mode inverted when upgrading from 0.11.0 diff --git a/wled00/bus_manager.h b/wled00/bus_manager.h index 51965150..bc04452d 100644 --- a/wled00/bus_manager.h +++ b/wled00/bus_manager.h @@ -268,6 +268,10 @@ class BusPwm : public Bus { deallocatePins(); } + ~BusPwm() { + cleanup(); + } + private: uint8_t _pins[5] = {255, 255, 255, 255, 255}; uint8_t _data[5] = {255, 255, 255, 255, 255}; diff --git a/wled00/wled.h b/wled00/wled.h index 2a239b9c..e9a779a4 100644 --- a/wled00/wled.h +++ b/wled00/wled.h @@ -8,7 +8,7 @@ */ // version code in format yymmddb (b = daily build) -#define VERSION 2103040 +#define VERSION 2103041 //uncomment this if you have a "my_config.h" file you'd like to use //#define WLED_USE_MY_CONFIG