Skip to content
Snippets Groups Projects
Commit b191819f authored by Kevin Lyda's avatar Kevin Lyda :speech_balloon:
Browse files

Remove error constants.

parent c1cdc990
Branches
No related tags found
No related merge requests found
......@@ -116,31 +116,6 @@ const (
cmdTurnOffPwr = "<POWEROFF>>"
)
const (
errOpen = "Failed to open USB port"
errFirmware = "GQ GMC has older firmware. Some commands may not work."
errVersion = "Failed to read the version number of the firmware"
errSerialNumber = "Failed to read the serial number "
errCPM = "Failed to read the counts per minute "
errCPS = "Failed to read the counts per second "
errAutoCPS = "Failed to read auto counts per second "
errCFG = "Failed to get configuration data "
errEraseCFG = "Failed to erase configuration data "
errUpdateCFG = "Failed to update configuration data "
errClear = "Failed to clear USB input buffer. You should power cycle GQ GMC."
errBatteryVoltage = "Failed to read the battery voltage "
errHistoryData = "Failed to read the history data "
errHistoryDataLengthFmt = "Requested data length of the history command cannot exceed %d bytes"
errHistoryDataAddressFmt = "Address of the history command cannot exceed %d bytes"
errHistoryDataOverrunFmt = "History data length added to the address cannot exceed %d bytes"
errYear = "Failed to set year"
errMonth = "Failed to set month"
errDay = "Failed to set day"
errHour = "Failed to set hour"
errMinute = "Failed to set minute"
errSecond = "Failed to set second"
)
// GQGMCCounter is a GQ GMC Counter
type GQGMCCounter struct {
port *serial.Port
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment