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

CPS not CPM...

parent 13d83b3b
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -40,5 +40,5 @@ func main() { ...@@ -40,5 +40,5 @@ func main() {
fmt.Printf("Failed to connect to geiger counter: '%s'\n", err) fmt.Printf("Failed to connect to geiger counter: '%s'\n", err)
return return
} }
fmt.Printf("CPM: %d\n", cps) fmt.Printf("CPS: %d\n", cps)
} }
...@@ -207,7 +207,7 @@ func (gc *GQGMCCounter) GetCPM() (uint16, error) { ...@@ -207,7 +207,7 @@ func (gc *GQGMCCounter) GetCPM() (uint16, error) {
// GetCPS returns CPS // GetCPS returns CPS
func (gc *GQGMCCounter) GetCPS() (uint16, error) { func (gc *GQGMCCounter) GetCPS() (uint16, error) {
return gc.getReading(cmdGetCPM) return gc.getReading(cmdGetCPS)
} }
// GetVoltage returns current battery voltage // GetVoltage returns current battery voltage
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment