Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e1bde9b

Browse filesBrowse files
committed
Delegate to fptr helpers must be in IRAM
1 parent 15be5f6 commit e1bde9b
Copy full SHA for e1bde9b

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed

‎cores/esp8266/Delegate.h

Copy file name to clipboardExpand all lines: cores/esp8266/Delegate.h
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
3939
namespace detail
4040
{
4141
template<typename R, typename... P>
42-
static R vPtrToFunPtrExec(void* fn, P... args)
42+
static R IRAM_ATTR vPtrToFunPtrExec(void* fn, P... args)
4343
{
4444
using target_type = R(P...);
4545
return reinterpret_cast<target_type*>(fn)(std::forward<P...>(args...));
@@ -296,7 +296,7 @@ namespace detail
296296
}
297297
}
298298

299-
static R vPtrToFunAPtrExec(void* self, P... args)
299+
static R IRAM_ATTR vPtrToFunAPtrExec(void* self, P... args)
300300
{
301301
return static_cast<DelegatePImpl*>(self)->fnA(
302302
static_cast<DelegatePImpl*>(self)->obj,
@@ -525,7 +525,7 @@ namespace detail
525525
}
526526
}
527527

528-
static R vPtrToFunAPtrExec(void* self, P... args)
528+
static R IRAM_ATTR vPtrToFunAPtrExec(void* self, P... args)
529529
{
530530
return static_cast<DelegatePImpl*>(self)->fnA(
531531
static_cast<DelegatePImpl*>(self)->obj,
@@ -1144,7 +1144,7 @@ namespace detail
11441144
}
11451145
}
11461146

1147-
static R vPtrToFunAPtrExec(void* self)
1147+
static R IRAM_ATTR vPtrToFunAPtrExec(void* self)
11481148
{
11491149
return static_cast<DelegateImpl*>(self)->fnA(
11501150
static_cast<DelegateImpl*>(self)->obj);
@@ -1372,7 +1372,7 @@ namespace detail
13721372
}
13731373
}
13741374

1375-
static R vPtrToFunAPtrExec(void* self)
1375+
static R IRAM_ATTR vPtrToFunAPtrExec(void* self)
13761376
{
13771377
return static_cast<DelegateImpl*>(self)->fnA(
13781378
static_cast<DelegateImpl*>(self)->obj);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.