Skip to content

Commit 13e90fe

Browse files
committed
reworked patch to meet ivanseidel suggestions
1 parent b2a1c67 commit 13e90fe

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

DueTimer.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ const DueTimer::Timer DueTimer::Timers[NUM_TIMERS] = {
4343
#else
4444
void (*DueTimer::callbacks[NUM_TIMERS])() = {};
4545
#endif
46-
double DueTimer::_frequency[NUM_TIMERS] = {
47-
-1,-1,-1,-1,-1,-1,
46+
4847
#if NUM_TIMERS > 6
49-
-1,-1,-1
48+
double DueTimer::_frequency[NUM_TIMERS] = {-1,-1,-1,-1,-1,-1,-1,-1,-1};
49+
#else
50+
double DueTimer::_frequency[NUM_TIMERS] = {-1,-1,-1,-1,-1,-1};
5051
#endif
51-
};
5252

5353
/*
5454
Initializing all timers, so you can use them like this: Timer0.start();

DueTimer.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
Released into the public domain.
88
*/
99

10-
#ifdef __arm__
10+
#include "Arduino.h"
11+
12+
#if defined(_SAM3XA_)
1113

1214
#ifndef DueTimer_h
1315
#define DueTimer_h
1416

15-
#include "Arduino.h"
16-
1717
#include <inttypes.h>
1818

1919
/*

0 commit comments

Comments
 (0)