rwmingis / InterruptButton

This is an interrupt based button event library for the ESP32. It enables binding user defined actions to button events including 'Key Down', Key Up' , 'Key Press', 'Long Key Press' 'AutoRepeat Press' and 'Double-Click'. The actions associated it these events may be executed Asynchronously, Synchronously, or a Hybrid between the two.
MIT License
30 stars 8 forks source link

creation of a mutex for desctructor and asynchronous events #27

Closed playmiel closed 4 months ago

playmiel commented 8 months ago

I've added a mutex to correct the crash when using the desctrutor for asyncrone events with a pointer

rwmingis commented 8 months ago

Thanks Denis! I will try and have a look on the weekend and incorporate your suggestion. Cheers.

On Fri, 9 Feb 2024 at 21:35, Denis @.***> wrote:

I've added a mutex to correct the crash when using the desctrutor for asyncrone events with a pointer

You can view, comment on, or merge this pull request online at:

https://github.com/rwmingis/InterruptButton/pull/27 Commit Summary

File Changes

(2 files https://github.com/rwmingis/InterruptButton/pull/27/files)

Patch Links:

— Reply to this email directly, view it on GitHub https://github.com/rwmingis/InterruptButton/pull/27, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALW24E6UEXUVVILUCNFWWLTYSX3XXAVCNFSM6AAAAABDBHSZLWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEZDMOBWHA4TEOA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

rwmingis commented 4 months ago

Hi playmiel. Thanks heaps for adding this. I have incorported into the code locally and will update soon. I am not very familiar with push and pulls in github so have done manually. But should work.

Cheers!