Skip to content

Commit

Permalink
Removes unused help function
Browse files Browse the repository at this point in the history
Signed-off-by: Malte Muench <[email protected]>
  • Loading branch information
Malte Muench committed May 10, 2024
1 parent 4dd6929 commit 0a9cc9c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"bufio" // Reader
"encoding/csv" // CSV Management
"flag"
"fmt" // print :)
"github.com/c3re/can2mqtt/convertfunctions"
"io" // EOF const
"log" // error management
Expand Down Expand Up @@ -273,13 +272,3 @@ func isTopicInSlice(mqttTopic string) bool {
func getTopicFromId(canId uint32) string {
return pairFromID[canId].mqttTopic
}

// help function (obvious...)
func printHelp() {
_, _ = fmt.Fprintf(os.Stderr, "welcome to the CAN2MQTT bridge!\n\n")
_, _ = fmt.Fprintf(os.Stderr, "Usage: can2mqtt [-f <file>] [-c <CAN-Interface>] [-m <MQTT-Connect>] [-v] [-h] [-d <dirMode>]\n")
_, _ = fmt.Fprintf(os.Stderr, "<file>: a can2mqtt.csv file\n")
_, _ = fmt.Fprintf(os.Stderr, "<CAN-Interface>: a CAN-Interface e.g. can0\n")
_, _ = fmt.Fprintf(os.Stderr, "<MQTT-Connect>: connectstring for MQTT. e.g.: tcp://[user:pass@]localhost:1883\n")
_, _ = fmt.Fprintf(os.Stderr, "<dirMode>: directional Mode 0 = bidirectional, 1 = can2mqtt only, 2 = mqtt2can only\n")
}

0 comments on commit 0a9cc9c

Please sign in to comment.