From e0cae342402abf329355f983cf3e9d73fee9d154 Mon Sep 17 00:00:00 2001 From: David Boman Date: Thu, 6 Jul 2017 16:43:22 +0200 Subject: [PATCH 1/2] Update metadata to allow local testing --- library.json | 4 ++-- library.properties | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/library.json b/library.json index 975f790..5cdcf68 100644 --- a/library.json +++ b/library.json @@ -1,11 +1,11 @@ { - "name": "Thread", + "name": "ArduinoThreadPatched", "keywords": "thread, task", "description": "A library for managing the periodic execution of multiple tasks", "repository": { "type": "git", - "url": "https://github.com/ivanseidel/ArduinoThread.git" + "url": "https://github.com/exsolvi/ArduinoThread.git" }, "frameworks": "arduino", "platforms": "atmelavr" diff --git a/library.properties b/library.properties index 1494795..fadd5d0 100644 --- a/library.properties +++ b/library.properties @@ -1,9 +1,9 @@ -name=ArduinoThread -version=2.1.0 +name=ArduinoThreadPatched +version=2.1.2 author=Ivan Seidel maintainer=Ivan Seidel sentence=A simple way to run Threads on Arduino paragraph=This Library helps to maintain organized and to facilitate the use of multiple tasks. We can use Timers Interrupts, and make it really powerfull, running "pseudo-background" tasks on the rug. category=Timing -url=https://github.com/ivanseidel/ArduinoThread +url=https://github.com/exsolvi/ArduinoThread architectures=* From 9ca291e430195c63d28979da8aa8b47f3ff150bd Mon Sep 17 00:00:00 2001 From: David Boman Date: Thu, 6 Jul 2017 16:47:03 +0200 Subject: [PATCH 2/2] Add virtual destructor, see: https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#discussion-make-base-class-destructors-public-and-virtual-or-protected-and-nonvirtual --- Thread.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Thread.h b/Thread.h index 0e580a9..cf0be31 100644 --- a/Thread.h +++ b/Thread.h @@ -69,6 +69,7 @@ class Thread{ #endif Thread(void (*callback)(void) = NULL, unsigned long _interval = 0); + virtual ~Thread() {}; // Set the desired interval for calls, and update _cached_next_run virtual void setInterval(unsigned long _interval);