Skip to content

Commit 2d9d141

Browse files
committed
v4.0.4: bug: set callbacks should not be available in _TASK_OO_CALLBACKS mode
1 parent 6db028c commit 2d9d141

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Task Scheduler
22
### Cooperative multitasking for Arduino, ESPx, STM32 and other microcontrollers
3-
#### Version 4.0.3: 2025-11-02 [Latest updates](https://github.com/arkhipenko/TaskScheduler/wiki/Latest-Updates)
3+
#### Version 4.0.4: 2026-01-16 [Latest updates](https://github.com/arkhipenko/TaskScheduler/wiki/Latest-Updates)
44

55
[![arduino-library-badge](https://www.ardu-badge.com/badge/TaskScheduler.svg?)](https://www.ardu-badge.com/TaskScheduler)
66

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"maintainer": true
1717
}
1818
],
19-
"version": "4.0.3",
19+
"version": "4.0.4",
2020
"frameworks": "arduino",
2121
"platforms": "*"
2222
}

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=TaskScheduler
2-
version=4.0.3
2+
version=4.0.4
33
author=Anatoli Arkhipenko <arkhipenko@hotmail.com>
44
maintainer=Anatoli Arkhipenko <arkhipenko@hotmail.com>
55
sentence=Cooperative multitasking for Arduino, ESPx, STM32 and other microcontrollers.

src/TaskScheduler.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,10 @@ v4.0.2:
303303
v4.0.3:
304304
2025-11-02:
305305
- bug: next execution time with _TASK_TICKLESS did not take task timeout into account
306+
307+
v4.0.4:
308+
2025-11-15:
309+
- bug: set callbacks should not be available for _TASK_OO_CALLBACKS mode
306310
*/
307311

308312
#include "TaskSchedulerDeclarations.h"
@@ -1491,6 +1495,7 @@ void Scheduler::processRequests() {
14911495
}
14921496
break;
14931497

1498+
#ifndef _TASK_OO_CALLBACKS
14941499
case TASK_REQUEST_SETCALLBACK_1: {
14951500
Task* t = (Task*) req.object_ptr;
14961501
t->setCallback((TaskCallback)req.param1);
@@ -1508,6 +1513,7 @@ void Scheduler::processRequests() {
15081513
t->setOnDisable((TaskOnDisable)req.param1);
15091514
}
15101515
break;
1516+
#endif // _TASK_OO_CALLBACKS
15111517

15121518
default:
15131519
break;

0 commit comments

Comments
 (0)