Explorar o código

v4.0.4: bug: set callbacks should not be available in _TASK_OO_CALLBACKS mode

Anatoli Arkhipenko hai 1 mes
pai
achega
6e6bff9bc5
Modificáronse 4 ficheiros con 9 adicións e 3 borrados
  1. 1 1
      README.md
  2. 1 1
      library.json
  3. 1 1
      library.properties
  4. 6 0
      src/TaskScheduler.h

+ 1 - 1
README.md

@@ -1,6 +1,6 @@
 # Task Scheduler
 ### Cooperative multitasking for Arduino, ESPx, STM32 and other microcontrollers
-#### Version 4.0.3: 2025-11-02 [Latest updates](https://github.com/arkhipenko/TaskScheduler/wiki/Latest-Updates)
+#### Version 4.0.4: 2026-01-16 [Latest updates](https://github.com/arkhipenko/TaskScheduler/wiki/Latest-Updates)
 
 [![arduino-library-badge](https://www.ardu-badge.com/badge/TaskScheduler.svg?)](https://www.ardu-badge.com/TaskScheduler)
 

+ 1 - 1
library.json

@@ -16,7 +16,7 @@
       "maintainer": true
     }
   ],
-  "version": "4.0.3",
+  "version": "4.0.4",
   "frameworks": "arduino",
   "platforms": "*"
 }

+ 1 - 1
library.properties

@@ -1,5 +1,5 @@
 name=TaskScheduler
-version=4.0.3
+version=4.0.4
 author=Anatoli Arkhipenko <arkhipenko@hotmail.com>
 maintainer=Anatoli Arkhipenko <arkhipenko@hotmail.com>
 sentence=Cooperative multitasking for Arduino, ESPx, STM32 and other microcontrollers.

+ 6 - 0
src/TaskScheduler.h

@@ -303,6 +303,10 @@ v4.0.2:
 v4.0.3:
     2025-11-02:
         - bug: next execution time with _TASK_TICKLESS did not take task timeout into account
+
+v4.0.4:
+    2025-11-15:
+        - bug: set callbacks should not be available for _TASK_OO_CALLBACKS mode
 */
 
 #include "TaskSchedulerDeclarations.h"
@@ -1491,6 +1495,7 @@ void Scheduler::processRequests() {
         }
         break;
 
+#ifndef _TASK_OO_CALLBACKS
         case TASK_REQUEST_SETCALLBACK_1: {
             Task* t = (Task*) req.object_ptr;
             t->setCallback((TaskCallback)req.param1);
@@ -1508,6 +1513,7 @@ void Scheduler::processRequests() {
             t->setOnDisable((TaskOnDisable)req.param1);
         }
         break;
+#endif // _TASK_OO_CALLBACKS
 
         default:
         break;