Skip to content

Commit eba0451

Browse files
committed
guard against multiple inclusion
1 parent f48feeb commit eba0451

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Tasker.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
* Distributed under the GNU LGPL http://www.gnu.org/licenses/lgpl.txt
55
*/
66

7+
#ifndef _tasker_h
8+
#define _tasker_h
9+
710
#ifndef TASKER_MAX_TASKS
8-
#define TASKER_MAX_TASKS 10 /* max 254 entries, one occupies 14 bytes of RAM */
11+
#define TASKER_MAX_TASKS 10 // max 254 entries, one occupies 14 bytes of RAM
912
#endif
1013

1114
#include "Arduino.h"
@@ -92,3 +95,4 @@ void Tasker::loop(void)
9295
}
9396
}
9497

98+
#endif // _tasker_h

0 commit comments

Comments
 (0)