Skip to content

Commit 93108f0

Browse files
authored
Merge pull request #764 from mcci-catena/issue763
Fix #763: use TimeLib.h in ttn-otaa-network-time example; this is v4.0.1-pre1
2 parents 48f04f1 + 516ace6 commit 93108f0

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,6 +1240,9 @@ function uflt12f(rawUflt12)
12401240

12411241
## Release History
12421242

1243+
- HEAD contains the following changes
1244+
- Adapt ttn-otaa-network-time example to be compatible with [PaulStoffregen/Time](https://github.com/PaulStoffregen/Time) v1.6.1, which deletes `Time.h` in favor of `TimeLib.h` [#763](https://github.com/mcci-catena/arduino-lmic/issues/763). Version is v4.0.1-pre1.
1245+
12431246
- v4.0 is a major release; changes are significant enough to be "likely breaking". It includes the following changes.
12441247

12451248
- Fix some broken documentation references [#644](https://github.com/mcci-catena/arduino-lmic/issues/644), [#646](https://github.com/mcci-catena/arduino-lmic/pulls/646), [#673](https://github.com/mcci-catena/arduino-lmic/pulls/673).

examples/ttn-otaa-network-time/ttn-otaa-network-time.ino

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,15 @@
2727
* DevEUI and AppKey.
2828
*
2929
* Do not forget to define the radio type correctly in config.h.
30+
*
31+
* You will need to also install the library github.com/PaulStoffregen/Time;
32+
* you need a version that has TimeLib.h.
3033
*
3134
*******************************************************************************/
3235

33-
#include <Time.h>
36+
// requires library: github.com/PaulStoffregen/Time
37+
#include <TimeLib.h> // can't use <Time.h> starting with v1.6.1
38+
3439
#include <lmic.h>
3540
#include <hal/hal.h>
3641
#include <SPI.h>

src/lmic/lmic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ extern "C"{
106106
((((major)*UINT32_C(1)) << 24) | (((minor)*UINT32_C(1)) << 16) | (((patch)*UINT32_C(1)) << 8) | (((local)*UINT32_C(1)) << 0))
107107

108108
#define ARDUINO_LMIC_VERSION \
109-
ARDUINO_LMIC_VERSION_CALC(4, 0, 0, 0) /* 4.0.0 */
109+
ARDUINO_LMIC_VERSION_CALC(4, 0, 1, 1) /* 4.0.1-pre1 */
110110

111111
#define ARDUINO_LMIC_VERSION_GET_MAJOR(v) \
112112
((((v)*UINT32_C(1)) >> 24u) & 0xFFu)

0 commit comments

Comments
 (0)