From b191819f1d754c45db5b018abcd14166b1080be3 Mon Sep 17 00:00:00 2001 From: Kevin Lyda <kevin@ie.suberic.net> Date: Mon, 30 Jan 2017 10:17:08 +0000 Subject: [PATCH] Remove error constants. --- devices/geiger/gqgmc.go | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/devices/geiger/gqgmc.go b/devices/geiger/gqgmc.go index d66dad5..e028a77 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 -- GitLab