mirror of
https://github.com/78/xiaozhi-esp32.git
synced 2026-07-21 02:05:52 +00:00
Remove esp_timer_delete from destructor to match original behavior
Co-authored-by: 78 <4488133+78@users.noreply.github.com>
This commit is contained in:
co-authored by
78
parent
89af80b605
commit
10bd3df13b
@@ -45,7 +45,6 @@ SingleLed::SingleLed(gpio_num_t gpio) {
|
||||
SingleLed::~SingleLed() {
|
||||
if (blink_timer_ != nullptr) {
|
||||
esp_timer_stop(blink_timer_);
|
||||
esp_timer_delete(blink_timer_);
|
||||
}
|
||||
if (led_strip_ != nullptr) {
|
||||
led_strip_del(led_strip_);
|
||||
|
||||
Reference in New Issue
Block a user