lorawan/basic-demo: add debug logs at compile time with ldflags

This commit is contained in:
Olivier Fauchon
2023-01-29 20:11:47 +01:00
committed by Ron Evans
parent 7cc32dffed
commit d473b9e1dc
2 changed files with 13 additions and 3 deletions
@@ -33,3 +33,12 @@ tinygo flash -target pybadge -tags featherwing ./examples/lora/lorawan/basic-dem
tinygo flash -target lorae5 ./examples/lora/lorawan/basic-demo
```
## Enable debugging
You can also enable some debug logs with ldflags :
```
$ tinygo build -ldflags="-X 'main.debug=true'" -target=lorae5
```