mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 22:13:52 +01:00
pkg/semtech-loramac: remove timer tweaks from contrib
This commit is contained in:
parent
22d59cbb08
commit
b3d81af38a
@ -96,7 +96,7 @@ void SX127XSetRxConfig(RadioModems_t modem, uint32_t bandwidth,
|
||||
sx127x_set_freq_hop(&sx127x, freqHopOn);
|
||||
sx127x_set_hop_period(&sx127x, hopPeriod);
|
||||
sx127x_set_iq_invert(&sx127x, iqInverted);
|
||||
sx127x_set_symbol_timeout(&sx127x, 2 * symbTimeout);
|
||||
sx127x_set_symbol_timeout(&sx127x, symbTimeout);
|
||||
sx127x_set_rx_single(&sx127x, !rxContinuous);
|
||||
}
|
||||
|
||||
|
||||
@ -60,12 +60,7 @@ void TimerSetValue(TimerEvent_t *obj, uint32_t value)
|
||||
xtimer_remove(&(obj->dev));
|
||||
}
|
||||
|
||||
/* According to the lorawan specifications, the data sent from the gateway
|
||||
could arrive with a short shift in time of +/- 20ms. Here the timeout is
|
||||
triggered 50ms in advance to make sure the radio switches to RX mode on
|
||||
time and doesn't miss any downlink messages, taking in consideration
|
||||
possible xtimer inaccuracies. */
|
||||
obj->timeout = (value - 50) * US_PER_MS;
|
||||
obj->timeout = value * US_PER_MS;
|
||||
}
|
||||
|
||||
TimerTime_t TimerGetCurrentTime(void)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user