From 16679c0110549fff5be1607c9406efb66b4ce108 Mon Sep 17 00:00:00 2001
From: yaroshd81 <56533952+yaroshd81@users.noreply.github.com>
Date: Mon, 22 Nov 2021 17:49:51 +0200
Subject: [PATCH] Update Ticker.cpp

fix error when call method active(): `undefined reference to Ticker::active()`
---
 libraries/Ticker/src/Ticker.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libraries/Ticker/src/Ticker.cpp b/libraries/Ticker/src/Ticker.cpp
index 1deeb7fb69f..3a700ebdf14 100644
--- a/libraries/Ticker/src/Ticker.cpp
+++ b/libraries/Ticker/src/Ticker.cpp
@@ -56,3 +56,7 @@ void Ticker::detach() {
     _timer = nullptr;
   }
 }
+
+void Ticker::active() {
+  return (bool)_timer; 
+}