1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #8319 from jia200x/sx127x_static_inline

drivers/sx127x: add static keyword to inline
This commit is contained in:
Alexandre Abadie 2018-01-04 21:59:24 +01:00 committed by GitHub
commit 101fb13997
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -446,7 +446,7 @@ uint8_t sx127x_get_bandwidth(const sx127x_t *dev)
return dev->settings.lora.bandwidth;
}
inline void _low_datarate_optimize(sx127x_t *dev)
static void _low_datarate_optimize(sx127x_t *dev)
{
if ( ((dev->settings.lora.bandwidth == LORA_BW_125_KHZ) &&
((dev->settings.lora.datarate == LORA_SF11) ||
@ -471,7 +471,7 @@ inline void _low_datarate_optimize(sx127x_t *dev)
#endif
}
inline void _update_bandwidth(const sx127x_t *dev)
static void _update_bandwidth(const sx127x_t *dev)
{
uint8_t config1_reg = sx127x_reg_read(dev, SX127X_REG_LR_MODEMCONFIG1);
#if defined(MODULE_SX1272)