Compare commits
2 Commits
de1c9fdd7f
...
1ef63c3ad4
Author | SHA1 | Date | |
---|---|---|---|
1ef63c3ad4 | |||
9165b9ad82 |
4
main.go
4
main.go
@ -180,12 +180,12 @@ type TICWriter interface {
|
||||
}
|
||||
|
||||
func main() {
|
||||
parseEnvironmentVariables()
|
||||
|
||||
var legacyMode = flag.Bool("legacy-mode", false, "Assume teleinformation in legacy mode")
|
||||
var pushFrequency = flag.Bool("push-frequency", false, "Also fetch data about the grid frequency")
|
||||
flag.Parse()
|
||||
|
||||
parseEnvironmentVariables()
|
||||
|
||||
if len(flag.Args()) < 1 {
|
||||
log.Println("missing required argument: serial device (eg. /dev/ttyUSB0)")
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user