mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 14:33:52 +01:00
Merge pull request #7990 from dylad/opt_sx127x
drivers/sx127x: remove duplicate CS init
This commit is contained in:
commit
d94064109b
@ -256,15 +256,6 @@ static int _init_peripherals(sx127x_t *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
res = gpio_init(dev->params.nss_pin, GPIO_OUT);
|
||||
if (res < 0) {
|
||||
DEBUG("sx127x: error initializing GPIO_%ld as CS line (code %i)\n",
|
||||
(long)dev->params.nss_pin, res);
|
||||
return 0;
|
||||
}
|
||||
|
||||
gpio_set(dev->params.nss_pin);
|
||||
|
||||
DEBUG("sx127x: peripherals initialized with success\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user