drivers/sx127x: remove duplicate CS init
Signed-off-by: dylad <dylan.laduranty@mesotic.com>
This commit is contained in:
parent
4374a71562
commit
c77490a28e
@ -256,15 +256,6 @@ static int _init_peripherals(sx127x_t *dev)
|
|||||||
return 0;
|
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");
|
DEBUG("sx127x: peripherals initialized with success\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user