Lora-net/lora_gateway

Why set gpio direction twice in iot_sk_init()@reset_lgw.sh?

andrewintw opened this issue · 2 comments

Can someone explain after set IOT_SK_SX1301_RESET_PIN as gpio output in line 30 and do reset, why it need to set as gpio input in line 37? Does it really necessary?

https://github.com/Lora-net/lora_gateway/blob/master/reset_lgw.sh

I have a related question: what is the point of the 'stop' command in the reset script at all? When would this ever be used? It simply unexports the reset GPIO pin, which is done anyway at the end of the "start" command.
This is confusing and maybe unnecessary?

Thank you for your inquiry.

Customers are encouraged to submit technical questions via our dedicated support portal at https://semtech.force.com/ldp/ldp_support.

We invite all users to visit the LoRa Developer Portal Forum at https://forum.lora-developers.semtech.com and to join the thriving LoRa development community!