Skip to content

Commit

Permalink
fix: reset_lgw optional param
Browse files Browse the repository at this point in the history
- Allow, but do not require reset_lgw to accept a second parameter for
the reset pin.
  • Loading branch information
marvinmarnold committed Oct 21, 2021
1 parent 3d73e6a commit 59c20a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packet_forwarder/src/lora_pkt_fwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1889,9 +1889,9 @@ int main(int argc, char ** argv)
i = lgw_get_temperature(&temperature);
pthread_mutex_unlock(&mx_concent);
if (i != LGW_HAL_SUCCESS) {
// printf("### Concentrator temperature unknown ###\n");
// DEBUG_MSG("### Concentrator temperature unknown ###\n");
} else {
// printf("### Concentrator temperature: %.0f C ###\n", temperature);
// DEBUG_MSG("### Concentrator temperature: %.0f C ###\n", temperature);
}
printf("##### END #####\n");

Expand Down
2 changes: 1 addition & 1 deletion tools/reset_lgw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#

if [ -z "$2" ]; then
SX1302_RESET_PIN=38
echo "SX1302_RESET_PIN parameter not passed in, using value from the environment ${SX1302_RESET_PIN}"
else
SX1302_RESET_PIN=$2
fi
Expand Down

0 comments on commit 59c20a6

Please sign in to comment.