Added destructor for BusPwm (fixes #1789)

This commit is contained in:
cschwinne 2021-03-04 22:17:25 +01:00
parent c0dd98b6d7
commit 05521bfd3a
3 changed files with 9 additions and 1 deletions

View File

@ -2,6 +2,10 @@
### Development versions after 0.11.1 release ### Development versions after 0.11.1 release
#### Build 2103041
- Added destructor for BusPwm (fixes #1789)
#### Build 2103040 #### Build 2103040
- Fixed relay mode inverted when upgrading from 0.11.0 - Fixed relay mode inverted when upgrading from 0.11.0

View File

@ -268,6 +268,10 @@ class BusPwm : public Bus {
deallocatePins(); deallocatePins();
} }
~BusPwm() {
cleanup();
}
private: private:
uint8_t _pins[5] = {255, 255, 255, 255, 255}; uint8_t _pins[5] = {255, 255, 255, 255, 255};
uint8_t _data[5] = {255, 255, 255, 255, 255}; uint8_t _data[5] = {255, 255, 255, 255, 255};

View File

@ -8,7 +8,7 @@
*/ */
// version code in format yymmddb (b = daily build) // 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 //uncomment this if you have a "my_config.h" file you'd like to use
//#define WLED_USE_MY_CONFIG //#define WLED_USE_MY_CONFIG