cleanup and fix
continuous-integration/drone/push Build is passing

This commit is contained in:
Stian Fredrik Aune
2021-11-07 18:56:21 +01:00
parent 88bd4dc073
commit 5bd7a7f6b6
3 changed files with 1 additions and 24 deletions
-9
View File
@@ -4,15 +4,6 @@ kind: pipeline
type: docker
steps:
- name: go-build
image: golang:1.17
commands:
- go test -v ./...
when:
event:
exclude:
- tag
- name: go-test
image: golang:1.17
commands:
+1 -1
View File
@@ -44,7 +44,7 @@ func WriteDeviceStateTable(w io.Writer, devices []models.Device) {
temperatureString := ""
if v.HasCapability(models.DCTemperatureControl, models.DCTemperatureSensor) {
temperatureString = strconv.FormatFloat(v.State.Temperature, 'f', -1, 64)
temperatureString = fmt.Sprintf("%d", v.State.Temperature)
}
intensityString := ""
-14
View File
@@ -1,14 +0,0 @@
package main
import (
"crypto/rand"
"fmt"
"io"
)
func main() {
buf := make([]byte, 8)
_, _ = io.ReadFull(rand.Reader, buf)
fmt.Printf("%x", buf)
}