1
0
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:
Alexandre Abadie 2017-11-09 20:57:48 +01:00 committed by GitHub
commit d94064109b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}