[LoRaWAN] Add co-author
Co-Authored-By: HeadBoffin <60431281+HeadBoffin@users.noreply.github.com>
This commit is contained in:
parent
0d75bfae02
commit
6fe92f7221
1 changed files with 1 additions and 1 deletions
|
@ -2921,7 +2921,7 @@ int16_t LoRaWANNode::getMacDeviceTimeAns(uint32_t* gpsEpoch, uint8_t* fraction,
|
||||||
if(gpsEpoch) {
|
if(gpsEpoch) {
|
||||||
*gpsEpoch = LoRaWANNode::ntoh<uint32_t>(&payload[0]);
|
*gpsEpoch = LoRaWANNode::ntoh<uint32_t>(&payload[0]);
|
||||||
if(returnUnix) {
|
if(returnUnix) {
|
||||||
uint32_t unixOffset = 315964800 - 18; // 18 leap seconds between Jan. 6th 1980
|
uint32_t unixOffset = 315964800 - 18; // 18 leap seconds since GPS epoch (Jan. 6th 1980)
|
||||||
*gpsEpoch += unixOffset;
|
*gpsEpoch += unixOffset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue