Sfoglia il codice sorgente

v3.1.3 - _TASK_DEFINE_MILLIS and virtual Task destructor

Anatoli Arkhipenko 6 anni fa
parent
commit
d1e6c9e4ec

+ 1 - 1
README

@@ -1,5 +1,5 @@
 Task Scheduler – cooperative multitasking for Arduino, ESPx, STM32 and other microcontrollers
-Version 3.1.2 2020-01-17
+Version 3.1.3 2020-02-16
 
 If you find TaskScheduler useful for your Arduino project, please drop me an email: arkhipenko@hotmail.com
 ----------------------------------------------------------------------------------------------------------

+ 1 - 1
README.md

@@ -1,6 +1,6 @@
 # Task Scheduler
 ### Cooperative multitasking for Arduino, ESPx, STM32 and other microcontrollers
-#### Version 3.1.2: 2020-01-17
+#### Version 3.1.3: 2020-02-16
 
 ### OVERVIEW:
 A lightweight implementation of cooperative multitasking (task scheduling) supporting:

+ 1 - 1
examples/Scheduler_template/Scheduler_template.ino

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

+ 1 - 1
library.properties

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

+ 1 - 0
src/TaskScheduler.h

@@ -162,6 +162,7 @@
 // 
 // v3.1.3:
 //    2020-01-30 - bug fix: _TASK_DEFINE_MILLIS to force forward definition of millis and micros. Not defined by default. 
+//    2020-02-16 - bug fix: add 'virtual' to the Task destructor definition (issue #86)
 
 
 #include <Arduino.h>

+ 1 - 1
src/TaskSchedulerDeclarations.h

@@ -147,7 +147,7 @@ class Task {
 #endif // _TASK_OO_CALLBACKS
 #endif  // _TASK_STATUS_REQUEST
 
-    INLINE ~Task();
+    virtual INLINE ~Task();
 
 #ifdef _TASK_TIMEOUT
     INLINE void setTimeout(unsigned long aTimeout, bool aReset=false);