Skip to content

Commit 8bcc2ad

Browse files
authored
Merge pull request #4 from vChavezB/esp32core_v3
added support for esp32 core v3
2 parents 6e837f1 + f39021a commit 8bcc2ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/qf_port.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ void QActive::start(QPrioSpec const prioSpec,
113113

114114
/* task name provided by the user in QF_setTaskName() or default name */
115115
char const *taskName = (m_thread != nullptr)
116-
? static_cast<char const *>(m_thread)
116+
? reinterpret_cast<char const *>(m_thread)
117117
: static_cast<char const *>("AO");
118118

119119
/* statically create the FreeRTOS task for the AO */
@@ -138,7 +138,7 @@ void QActive::setAttr(std::uint32_t attr1, void const *attr2) {
138138
switch (attr1) {
139139
case TASK_NAME_ATTR:
140140
/* temporarily store the name */
141-
m_thread = const_cast<void *>(attr2); /* cast 'const' away */
141+
m_thread = reinterpret_cast<TaskHandle_t>(const_cast<void *>(attr2)); /* cast 'const' away */
142142
break;
143143
/* ... */
144144
}

0 commit comments

Comments
 (0)