use proper enum for default BW

This commit is contained in:
Morgan 'ARR\!' Allen 2020-03-02 21:08:25 -08:00
parent 499acd3976
commit d987072745

View file

@ -31,7 +31,7 @@ lora32_cfg_t lora32_create() {
static spi_device_handle_t spi; static spi_device_handle_t spi;
return (lora32_cfg_t){ return (lora32_cfg_t){
.bandwidth = bandwidths[B125], .bandwidth = B125,
.codingRate = DEFAULT_CR, .codingRate = DEFAULT_CR,
.dio0 = CONFIG_LORA32_DIO0_PIN, .dio0 = CONFIG_LORA32_DIO0_PIN,
.implicitHeader = false, .implicitHeader = false,