diff --git a/devices/geiger/gqgmc.go b/devices/geiger/gqgmc.go index d66dad5ccfd4c52291d6d03a9689354bb6cf7d94..e028a77d1ec3c44c29843922e6dbc4faaa243b90 100644 --- a/devices/geiger/gqgmc.go +++ b/devices/geiger/gqgmc.go @@ -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