summaryrefslogtreecommitdiff
path: root/py/bc0.h
diff options
context:
space:
mode:
authorMartin Dybdal <dybber@dybber.dk>2019-05-24 13:19:26 +0200
committerDamien George <damien.p.george@gmail.com>2019-05-31 14:55:07 +1000
commitde76f73d34a63fa34c520125f226e0c159ce0b10 (patch)
tree57c8f480effebd91d0efc87d81d4453ffefb586d /py/bc0.h
parentff91b05cfa8154d1a4d098423dfa95d14ade4271 (diff)
esp32/machine_timer: Reuse Timer handles, deallocate only on soft-reset.
The patch solves the problem where multiple Timer objects (e.g. multiple Timer(0) instances) could initialise multiple handles to the same internal timer. The list of timers is now maintained not for "active" timers (where init is called), but for all timers created. The timers are only removed from the list of timers on soft-reset (machine_timer_deinit_all). Fixes #4078.
Diffstat (limited to 'py/bc0.h')
0 files changed, 0 insertions, 0 deletions