summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Bayer <bbayer@multitech.com>2016-11-08 10:57:36 -0600
committerBrandon Bayer <bbayer@multitech.com>2016-11-08 15:38:39 -0600
commitc6e6cedcc992b077599cff29cbd8029776b64e20 (patch)
treeb54b675d1eca773dfff56099e9e11a58cb830b2e
parent54166eeda071080cdcc053b6d7a50106b729e812 (diff)
downloadmts-io-c6e6cedcc992b077599cff29cbd8029776b64e20.tar.gz
mts-io-c6e6cedcc992b077599cff29cbd8029776b64e20.tar.bz2
mts-io-c6e6cedcc992b077599cff29cbd8029776b64e20.zip
mtcap:fix: invert lora reset API
-rw-r--r--io-module/mtcap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/io-module/mtcap.c b/io-module/mtcap.c
index d86c5a6..0eeb067 100644
--- a/io-module/mtcap.c
+++ b/io-module/mtcap.c
@@ -44,10 +44,11 @@ static struct gpio_pin gpio_pins_mtcap_0_0[] = {
.name = "LORA_RESET",
.pin = {
.gpio = AT91_PIN_PA8, // LORA_RST
- .flags = GPIOF_OUT_INIT_LOW,
+ .flags = GPIOF_OUT_INIT_HIGH,
.label = "lora/reset",
},
.capability = CAPA_LORA,
+ .active_low = 1,
},
{ // gpio 1 for LORA 1.5 ref design
.name = "LORA_CDONE",