Skip to content

Commit f4b0c74

Browse files
Merge pull request #23 from andreagilardoni/timed-attempt-ns
changing namespace for timedAttempt to avoid conflicts with time()
2 parents dd9df60 + 81c52c1 commit f4b0c74

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

extras/test/src/time/test_TimedAttempt.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <Arduino.h>
1515
#include <limits.h>
1616

17-
using namespace arduino::time;
17+
using namespace arduino::tattempt;
1818

1919
SCENARIO("Test broker connection retries") {
2020
TimedAttempt _connection_attempt(0,0);

src/Arduino_TimedAttempt.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111

1212
#include "./time/TimedAttempt.h"
1313

14-
using namespace arduino::time;
14+
using namespace arduino::tattempt;

src/time/TimedAttempt.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <Arduino.h>
1313
#include "TimedAttempt.h"
1414

15-
namespace arduino { namespace time {
15+
namespace arduino { namespace tattempt {
1616

1717
TimedAttempt::TimedAttempt(unsigned long minDelay, unsigned long maxDelay)
1818
: _minDelay(minDelay)
@@ -75,4 +75,4 @@ namespace arduino { namespace time {
7575
return _retryDelay;
7676
}
7777

78-
}} // arduino::time
78+
}} // arduino::tattempt

src/time/TimedAttempt.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#pragma once
1212

13-
namespace arduino { namespace time {
13+
namespace arduino { namespace tattempt {
1414

1515
/**
1616
* The TimedAttempt class manages retry attempts with configurable delays.
@@ -97,4 +97,4 @@ namespace arduino { namespace time {
9797
unsigned int _retryCount;
9898
};
9999

100-
}} // arduino::time
100+
}} // arduino::tattempt

0 commit comments

Comments
 (0)