This commit is contained in:
Marius Gripp 2019-08-29 14:55:31 +02:00
parent 4d42c961b2
commit 1e53a25d03

View File

@ -265,7 +265,7 @@ void onEvent(ev_t ev) {
#if (TIME_SYNC_LORASERVER)
// timesync answer -> call timesync processor
if ((LMIC.frame[LMIC.dataBeg] == TIMEPORT) {
if (LMIC.frame[LMIC.dataBeg - 1] == TIMEPORT) {
recv_timesync_ans(LMIC.frame + LMIC.dataBeg, LMIC.dataLen);
break;
}