diff --git a/tests/driver_sx127x/main.c b/tests/driver_sx127x/main.c index 13dcbad0e82f472837d5794bef356f7c5cdff428..e978cf4e1f26e0d071244ef5968f3a0b83df3fa6 100644 --- a/tests/driver_sx127x/main.c +++ b/tests/driver_sx127x/main.c @@ -106,7 +106,7 @@ int lora_setup_cmd(int argc, char **argv) { netdev->driver->set(netdev, NETOPT_BANDWIDTH, &lora_bw, sizeof(lora_bw)); netdev->driver->set(netdev, NETOPT_SPREADING_FACTOR, - &lora_sf, lora_sf); + &lora_sf, sizeof(lora_sf)); netdev->driver->set(netdev, NETOPT_CODING_RATE, &lora_cr, sizeof(lora_cr));