mirror of
https://github.com/kidoman/embd
synced 2025-07-03 03:47:33 +02:00
samples: enable flag parsing
this will allow people to use glog options (like -v=3) to increase verbosity of the log output
This commit is contained in:
parent
10992981e3
commit
779096e668
22 changed files with 91 additions and 10 deletions
|
@ -3,6 +3,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"os"
|
||||
"os/signal"
|
||||
"time"
|
||||
|
@ -13,6 +14,8 @@ import (
|
|||
)
|
||||
|
||||
func main() {
|
||||
flag.Parse()
|
||||
|
||||
if err := embd.InitI2C(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue