8000 Deploy new MultiDelegate template argument for switching queue/event … · dok-net/arduino-esp8266@f52ae35 · GitHub
[go: up one dir, main page]

Skip to content

Commit f52ae35

Browse files
committed
Deploy new MultiDelegate template argument for switching queue/event behavior.
1 parent 41e8ed8 commit f52ae35

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

cores/esp8266/Schedule.cpp

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,8 @@
2424
#include "interrupts.h"
2525
#include "coredecls.h"
2626

27-
class mSchedFuncT : public Delegate<void(), void*>
28-
{
29-
public:
30-
using target_type = bool();
31-
using base_type = Delegate<void(), void*>;
32-
using base_type::Delegate;
33-
bool IRAM_ATTR operator()() const
34-
{
35-
base_type::operator()();
36-
return false;
37-
}
38-
};
39-
MultiDelegate<mSchedFuncT> schedFuncs;
27+
using mSchedFuncT = Delegate<void(), void*>;
28+
MultiDelegate<mSchedFuncT, true> schedFuncs;
4029

4130
class mRecFuncT : public Delegate<bool(), void*>
4231
{

0 commit comments

Comments
 (0)
0