Skip to content

Commit 5ff9e32

Browse files
committed
Revert
1 parent 64aec3a commit 5ff9e32

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

libraries/Ticker/src/Ticker.cpp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
/*
1+
/*
22
Ticker.cpp - esp32 library that calls functions periodically
33
44
Copyright (c) 2017 Bert Melis. All rights reserved.
5-
5+
66
Based on the original work of:
77
Copyright (c) 2014 Ivan Grokhotkov. All rights reserved.
88
The original version is part of the esp8266 core for Arduino environment.
@@ -24,16 +24,14 @@
2424

2525
#include "Ticker.h"
2626

27-
Ticker::Ticker()
28-
: _timer(nullptr) {}
27+
Ticker::Ticker() :
28+
_timer(nullptr) {}
2929

30-
Ticker::~Ticker()
31-
{
30+
Ticker::~Ticker() {
3231
detach();
3332
}
3433

35-
void Ticker::_attach_us(uint64_t micros, bool repeat, callback_with_arg_t callback, void* arg)
36-
{
34+
void Ticker::_attach_us(uint64_t micros, bool repeat, callback_with_arg_t callback, void* arg) {
3735
esp_timer_create_args_t _timerConfig;
3836
_timerConfig.arg = reinterpret_cast<void*>(arg);
3937
_timerConfig.callback = callback;

0 commit comments

Comments
 (0)