File tree 1 file changed +8
-10
lines changed 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change 27
27
#include < Arduino.h>
28
28
#ifdef BOARD_HAS_ECCX08
29
29
#include < ArduinoECCX08.h>
30
- bool has_crypto = 1 ;
31
- #else
32
- bool has_crypto = 0 ;
33
30
#endif
34
31
35
32
/* *************************************************************************************
@@ -91,13 +88,14 @@ void NTPUtils::sendNTPpacket(UDP & udp)
91
88
udp.endPacket ();
92
89
}
93
90
94
- int NTPUtils::setRandomPort (int minValue, int maxValue) {
95
- if (has_crypto) {
96
- return ECCX08.random (minValue, maxValue);
97
- } else {
98
- randomSeed (analogRead (0 ));
99
- return random (minValue, maxValue);
100
- }
91
+ int NTPUtils::setRandomPort (int minValue, int maxValue)
92
+ {
93
+ #ifdef BOARD_HAS_ECCX08
94
+ return ECCX08.random (minValue, maxValue);
95
+ #else
96
+ randomSeed (analogRead (0 ));
97
+ return random (minValue, maxValue);
98
+ #endif
101
99
}
102
100
103
101
#endif /* #ifndef HAS_LORA */
You can’t perform that action at this time.
0 commit comments